From: Romain Naour Date: Sat, 24 Jan 2015 15:23:41 +0000 (+0100) Subject: package/infozip: factorize common CFLAGS X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ecf34b9f5add58c5c03fc2ea77a30d96065395e;p=buildroot.git package/infozip: factorize common CFLAGS Signed-off-by: Romain Naour Signed-off-by: Thomas Petazzoni --- diff --git a/package/infozip/infozip.mk b/package/infozip/infozip.mk index 229299c52f..3f53224fcf 100644 --- a/package/infozip/infozip.mk +++ b/package/infozip/infozip.mk @@ -14,9 +14,12 @@ ifeq ($(BR2_PACKAGE_BZIP2),y) INFOZIP_DEPENDENCIES += bzip2 endif +# Infozip's default CFLAGS. +INFOZIP_CFLAGS = -I. -DUNIX + define INFOZIP_BUILD_CMDS $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \ - CFLAGS="$(TARGET_CFLAGS) -I. -DUNIX" \ + CFLAGS="$(TARGET_CFLAGS) $(INFOZIP_CFLAGS)" \ AS="$(TARGET_CC) -c" \ -f unix/Makefile generic endef @@ -28,7 +31,7 @@ endef define HOST_INFOZIP_BUILD_CMDS $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) \ - CFLAGS="$(HOST_CFLAGS) -I. -DUNIX" \ + CFLAGS="$(HOST_CFLAGS) $(INFOZIP_CFLAGS)" \ AS="$(HOSTCC) -c" \ -f unix/Makefile generic endef