From 8f35ac5f6407652299ff83ef8c10dce263b6f9de Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Wed, 26 Sep 2018 00:43:23 -0400 Subject: [PATCH] Improved libxml2 cflags/ldflags. --- platform-independent/c/cli/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform-independent/c/cli/build b/platform-independent/c/cli/build index 4e9695e3..cca35eca 100755 --- a/platform-independent/c/cli/build +++ b/platform-independent/c/cli/build @@ -222,7 +222,7 @@ use_mpw_json() { } use_mpw_xml() { local requisite=$1 - use mpw_xml "$requisite" xml2 && cflags+=( -D"MPW_XML=1" -I"/usr/include/libxml2" -I"/usr/local/include/libxml2" ) ||: + use mpw_xml "$requisite" xml2 && cflags+=( $(xml2-config --cflags) ) ldflags+=( $(xml2-config --libs) ) ||: }