[vlc-devel] [PATCH 1/4] contrib: libxml2 use a variable for the extra CFLAGS

Steve Lhomme robux4 at ycbcr.xyz
Mon Mar 18 15:37:38 CET 2019


---
 contrib/src/libxml2/rules.mak | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/contrib/src/libxml2/rules.mak b/contrib/src/libxml2/rules.mak
index c4aab837ae..7552260bb0 100644
--- a/contrib/src/libxml2/rules.mak
+++ b/contrib/src/libxml2/rules.mak
@@ -35,6 +35,8 @@ ifdef WITH_OPTIMIZATION
 XMLCONF+= --without-debug
 endif
 
+XML_CFLAGS = -DLIBXML_STATIC
+
 libxml2: libxml2-$(LIBXML2_VERSION).tar.gz .sum-libxml2
 	$(UNPACK)
 	$(APPLY) $(SRC)/libxml2/win32.patch
@@ -48,6 +50,6 @@ endif
 
 .libxml2: libxml2
 	$(RECONF)
-	cd $< && $(HOSTVARS) ./configure $(HOSTCONF) CFLAGS="$(CFLAGS) -DLIBXML_STATIC" $(XMLCONF)
+	cd $< && $(HOSTVARS) ./configure $(HOSTCONF) CFLAGS="$(CFLAGS) $(XML_CFLAGS)" $(XMLCONF)
 	cd $< && $(MAKE) install
 	touch $@
-- 
2.17.1



More information about the vlc-devel mailing list