From 7ecf34b9f5add58c5c03fc2ea77a30d96065395e Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Sat, 24 Jan 2015 16:23:41 +0100 Subject: [PATCH] package/infozip: factorize common CFLAGS Signed-off-by: Romain Naour Signed-off-by: Thomas Petazzoni --- package/infozip/infozip.mk | 7 +++++-- 1 file 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 -- 2.30.2