package/infozip: factorize common CFLAGS
Signed-off-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
f6071595ff
commit
7ecf34b9f5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user