[patch] scripts/Makefile.lib

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Tue Oct 28 19:58:08 UTC 2008


Would this patch be acceptable?

Convert from '-Wl,-<option>' (used to give specific gcc link options) to
direct link '-<option>'.

Index: scripts/Makefile.lib
===================================================================
--- scripts/Makefile.lib	(revision 22830)
+++ scripts/Makefile.lib	(working copy)
@@ -118,7 +118,7 @@
 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)
+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),\


Cheers,

-- 
Cristian



More information about the busybox mailing list