summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-03-26 21:52:39 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-03-26 21:52:39 +0200
commitf4dc73568b08bd96aa659c5ef29226349dee05de (patch)
treeaaaf8131eef353576d1067316e49454cd7347190
parentb718c776ca1a5d204f2ae9a765331a32e87e9560 (diff)
downloadbuildroot-f4dc73568b08bd96aa659c5ef29226349dee05de.tar.gz
buildroot-f4dc73568b08bd96aa659c5ef29226349dee05de.zip
lz4: pass {TARGET,HOST}_CONFIGURE_OPTS in the environment
{TARGET,HOST}_CONFIGURE_OPTS are currently passed as $(MAKE) argument, which causes some CPPFLAGS/CFLAGS defined by the package build system to be overridden, leading to build failures. This commit changes the lz4 package to pass {TARGET,HOST}_CONFIGURE_OPTS through the environment to avoid this issue. Fixes: http://autobuild.buildroot.net/results/2a578a9c462463fde802c999156723494fe1b14d/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/lz4/lz4.mk10
1 files changed, 5 insertions, 5 deletions
diff --git a/package/lz4/lz4.mk b/package/lz4/lz4.mk
index be891dd1a5..c2c89195d5 100644
--- a/package/lz4/lz4.mk
+++ b/package/lz4/lz4.mk
@@ -18,25 +18,25 @@ LZ4_POST_PATCH_HOOKS += LZ4_DISABLE_SHARED
endif
define HOST_LZ4_BUILD_CMDS
- $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D)
+ $(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D)
endef
define HOST_LZ4_INSTALL_CMDS
- $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) PREFIX=$(HOST_DIR)/usr \
+ $(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) PREFIX=$(HOST_DIR)/usr \
install -C $(@D)
endef
define LZ4_BUILD_CMDS
- $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)/lib
+ $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/lib
endef
define LZ4_INSTALL_STAGING_CMDS
- $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) DESTDIR=$(STAGING_DIR) \
+ $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) DESTDIR=$(STAGING_DIR) \
PREFIX=/usr install -C $(@D)
endef
define LZ4_INSTALL_TARGET_CMDS
- $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) DESTDIR=$(TARGET_DIR) \
+ $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) DESTDIR=$(TARGET_DIR) \
PREFIX=/usr install -C $(@D)/lib
endef
OpenPOWER on IntegriCloud