]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/pkg-config
pkg-config: Fix compilation with newer GCCs
[ipfire-2.x.git] / lfs / pkg-config
index 3c3b8b27ed2ed60c8575808915310a0597e7745b..d58fbe2abad47e33a7246af043cc67199ce85a6b 100644 (file)
@@ -42,6 +42,8 @@ else
   PREFIX = /tools
 endif
 
+CFLAGS += Wno-error=format-nonliteral
+
 ###############################################################################
 # Top-level Rules
 ###############################################################################
@@ -80,6 +82,7 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP)/glib && patch -Np1 < $(DIR_SRC)/src/patches/pkg-config-0.29-glib-compile-fix.patch
 ifeq "$(ROOT)" ""
 else
        mkdir -pv /tools/lib/pkgconfig