[git commit] Makefile: fix passing of EXTRA_LDLIBS
Denys Vlasenko
vda.linux at googlemail.com
Sun Apr 6 10:13:16 UTC 2025
commit: https://git.busybox.net/busybox/commit/?id=a8349b115d17025ee3a29f898b873906e3570d39
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
Makefile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 9550c391a..dcf7cd585 100644
--- a/Makefile
+++ b/Makefile
@@ -612,8 +612,12 @@ quiet_cmd_busybox__ ?= LINK $@
"$(core-y)" \
"$(libs-y)" \
"$(LDLIBS)" \
- "$(CONFIG_EXTRA_LDLIBS)" \
+ $(CONFIG_EXTRA_LDLIBS) \
&& $(srctree)/scripts/generate_BUFSIZ.sh --post include/common_bufsiz.h
+# ^^^ note: CONFIG_xyz strings already have double quotes: their value
+# is '"LIB LIB2"', therefore $(CONFIG_EXTRA_LDLIBS) above must NOT be written
+# as "$(CONFIG_EXTRA_LDLIBS)", it would be passed as ""LIB LIB2"",
+# and LIB2 would end up in $9, not $8 (and lost or misinterpreted).
# Generate System.map
quiet_cmd_sysmap = SYSMAP
More information about the busybox-cvs
mailing list