package/infozip: factorize common CFLAGS
authorRomain Naour <romain.naour@openwide.fr>
Sat, 24 Jan 2015 15:23:41 +0000 (16:23 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 5 Feb 2015 21:41:28 +0000 (22:41 +0100)
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/infozip/infozip.mk

index 229299c52f11369fc8b4e2f04a197c3e36177026..3f53224fcf61a7d777c053543155f30ee2fad4b3 100644 (file)
@@ -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