Skip to contentSkip to conversation

package/busybox: explicitly state binutils paths

Buildroot Yann E. MORIN 1 participant 1 message Jan 9, 2022

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=c669bd5115d748a76018490af0c798df2747657d
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

We are not passing TARGET_CONFIGURE_OPTS when building busybox; instead we are passing variables explicitly. As thus, it is missing the ar, nm, and ranlib that we are using.

We add explicit AR, NM, and RANLIB, so that the ones we want to use (i.e. the gcc-wrapped ones) are actually used.

[[email protected]:
- reword the commit log to explain why we need that
]

---
 package/busybox/busybox.mk | 3 +++
 1 file changed, 3 insertions(+)
package/busybox/busybox.mk +3 -0
index 3523cf21d0..60ebc4985f 100644
@@ -91,6 +91,9 @@ BUSYBOX_MAKE_ENV += \
 endif
 
 BUSYBOX_MAKE_OPTS = \
+	AR="$(TARGET_AR)" \
+	NM="$(TARGET_NM)" \
+	RANLIB="$(TARGET_RANLIB)" \
 	CC="$(TARGET_CC)" \
 	ARCH=$(KERNEL_ARCH) \
 	PREFIX="$(TARGET_DIR)" \

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot