svn commit: trunk/busybox/scripts
vda at busybox.net
vda at busybox.net
Sat Nov 8 20:36:32 UTC 2008
Author: vda
Date: 2008-11-08 12:36:32 -0800 (Sat, 08 Nov 2008)
New Revision: 23965
Log:
build system: remove '-Wl,' when we pass flags to ld.
Modified:
trunk/busybox/scripts/Makefile.lib
Changeset:
Modified: trunk/busybox/scripts/Makefile.lib
===================================================================
--- trunk/busybox/scripts/Makefile.lib 2008-11-07 21:56:12 UTC (rev 23964)
+++ trunk/busybox/scripts/Makefile.lib 2008-11-08 20:36:32 UTC (rev 23965)
@@ -117,9 +117,13 @@
cpp_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(__cpp_flags)
-# TODO: seems to be a wrong thing to do! LDFLAGS contains gcc's flags!
-ld_flags = $(LDFLAGS) $(EXTRA_LDFLAGS)
+# Seems to be a wrong thing to do. LDFLAGS contains gcc's flags,
+# yet ld_flags is fed to ld.
+#ld_flags = $(LDFLAGS) $(EXTRA_LDFLAGS)
+# Remove the -Wl, prefix from linker options normally passed through gcc
+ld_flags = $(filter-out -Wl$(comma)%,$(LDFLAGS) $(EXTRA_LDFLAGS))
+
# Finds the multi-part object the current object will be linked into
modname-multi = $(sort $(foreach m,$(multi-used),\
$(if $(filter $(subst $(obj)/,,$*.o), $($(m:.o=-objs)) $($(m:.o=-y))),$(m:.o=))))
More information about the busybox-cvs
mailing list