aboutsummaryrefslogtreecommitdiff
path: root/package/infozip
diff options
context:
space:
mode:
authorGravatar Romain Naour <romain.naour@openwide.fr>2015-01-24 16:23:41 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-02-05 22:41:28 +0100
commit7ecf34b9f5add58c5c03fc2ea77a30d96065395e (patch)
tree3cf67707bab9ad8bd5cdef11f761ace5834ce090 /package/infozip
parentf6071595ff8a6295a319441a1438d7a4ab11466b (diff)
downloadbuildroot-7ecf34b9f5add58c5c03fc2ea77a30d96065395e.tar.gz
buildroot-7ecf34b9f5add58c5c03fc2ea77a30d96065395e.tar.bz2
package/infozip: factorize common CFLAGS
Signed-off-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/infozip')
-rw-r--r--package/infozip/infozip.mk7
1 files changed, 5 insertions, 2 deletions
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