Skip to contentSkip to conversation

package/binutils: don't override the build command

PATCH New Yann E. MORIN 2 participants 2 messages Apr 27, 2019 – Apr 28, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/binutils: don't override the build command

In 1d42d0acca (binutils: ensure TARGET_CONFIGURE_ARGS is taken into consideration for subdirs), the whole BUILD_CMDS was overriden in an attempt to ensure that the target configure args (in fact, environment variables) are indeed passed in the environment of the build command.

However, there is no reason to override the whole command, when we can simply specify additional environment variables, as supported by the autotools infra.

Cc Peter Korsgaard <[email protected]>
---
 package/binutils/binutils.mk | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
package/binutils/binutils.mk +1 -3
index 6798356ff2..c70ba13b04 100644
@@ -91,9 +91,7 @@ HOST_BINUTILS_CONF_OPTS = \
 
 # binutils run configure script of subdirs at make time, so ensure
 # our TARGET_CONFIGURE_ARGS are taken into consideration for those
-define BINUTILS_BUILD_CMDS
-	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_ARGS) $(MAKE) $(BINUTILS_MAKE_OPTS) -C $(@D)
-endef
+BINUTILS_MAKE_ENV = $(TARGET_CONFIGURE_ARGS)
 
 # We just want libbfd, libiberty and libopcodes,
 # not the full-blown binutils in staging
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 package/binutils: don't override the build command

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

In 1d42d0acca (binutils: ensure TARGET_CONFIGURE_ARGS is taken into consideration for subdirs), the whole BUILD_CMDS was overriden in an attempt to ensure that the target configure args (in fact, environment variables) are indeed passed in the environment of the build command.

Quoted 6 lines

However, there is no reason to override the whole command, when we can simply specify additional environment variables, as supported by the autotools infra.

Cc Peter Korsgaard <[email protected]>

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard