diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-11-08 20:36:32 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-11-08 20:36:32 +0000 |
commit | 2a8329e0e9d1d6dcbcec27f01b0affef67a33554 (patch) | |
tree | 8ca23a5c42929c6c946188873e0e955c86d7cbb0 | |
parent | 30e1ab691cba8e472be329206ee576f685229f2f (diff) | |
download | busybox-w32-2a8329e0e9d1d6dcbcec27f01b0affef67a33554.tar.gz busybox-w32-2a8329e0e9d1d6dcbcec27f01b0affef67a33554.tar.bz2 busybox-w32-2a8329e0e9d1d6dcbcec27f01b0affef67a33554.zip |
build system: remove '-Wl,' when we pass flags to ld.
-rw-r--r-- | scripts/Makefile.lib | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 22c64306b..be679b624 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib | |||
@@ -117,8 +117,12 @@ a_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(CPPFLAGS) \ | |||
117 | 117 | ||
118 | cpp_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(__cpp_flags) | 118 | cpp_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(__cpp_flags) |
119 | 119 | ||
120 | # TODO: seems to be a wrong thing to do! LDFLAGS contains gcc's flags! | 120 | # Seems to be a wrong thing to do. LDFLAGS contains gcc's flags, |
121 | ld_flags = $(LDFLAGS) $(EXTRA_LDFLAGS) | 121 | # yet ld_flags is fed to ld. |
122 | #ld_flags = $(LDFLAGS) $(EXTRA_LDFLAGS) | ||
123 | # Remove the -Wl, prefix from linker options normally passed through gcc | ||
124 | ld_flags = $(filter-out -Wl$(comma)%,$(LDFLAGS) $(EXTRA_LDFLAGS)) | ||
125 | |||
122 | 126 | ||
123 | # Finds the multi-part object the current object will be linked into | 127 | # Finds the multi-part object the current object will be linked into |
124 | modname-multi = $(sort $(foreach m,$(multi-used),\ | 128 | modname-multi = $(sort $(foreach m,$(multi-used),\ |