[source] build: fix HOST_CONFIGURE_VARS placement

LEDE Commits lede-commits at lists.infradead.org
Thu Jan 5 05:21:35 PST 2017


jow pushed a commit to source.git, branch master:
https://git.lede-project.org/28f9df62f513c073b790b2d4c78a72649adce6ef

commit 28f9df62f513c073b790b2d4c78a72649adce6ef
Author: Jo-Philipp Wich <jo at mein.io>
AuthorDate: Thu Jan 5 14:10:31 2017 +0100

    build: fix HOST_CONFIGURE_VARS placement
    
    Ensure that HOST_CONFIGURE_VARS are set before the actual configure command
    instead of passing them as configure command arguments.
    
    This change brings host-build.mk in line with package-defaults.mk and makes
    host configure environment variables work as expected.
    
    Signed-off-by: Jo-Philipp Wich <jo at mein.io>
---
 include/host-build.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/host-build.mk b/include/host-build.mk
index b2f017b..f210985 100644
--- a/include/host-build.mk
+++ b/include/host-build.mk
@@ -80,9 +80,9 @@ define Host/Configure/Default
 	$(if $(HOST_CONFIGURE_PARALLEL),+)(cd $(HOST_BUILD_DIR)/$(3); \
 		if [ -x configure ]; then \
 			$(CP) $(SCRIPT_DIR)/config.{guess,sub} $(HOST_BUILD_DIR)/$(3)/ && \
+			$(HOST_CONFIGURE_VARS) \
 			$(2) \
 			$(HOST_CONFIGURE_CMD) \
-			$(HOST_CONFIGURE_VARS) \
 			$(HOST_CONFIGURE_ARGS) \
 			$(1); \
 		fi \



More information about the lede-commits mailing list