build system: remove '-Wl,' when we pass flags to ld.
This commit is contained in:
parent
30e1ab691c
commit
2a8329e0e9
@ -117,8 +117,12 @@ a_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(CPPFLAGS) \
|
|||||||
|
|
||||||
cpp_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(__cpp_flags)
|
cpp_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(__cpp_flags)
|
||||||
|
|
||||||
# TODO: seems to be a wrong thing to do! LDFLAGS contains gcc's flags!
|
# Seems to be a wrong thing to do. LDFLAGS contains gcc's flags,
|
||||||
ld_flags = $(LDFLAGS) $(EXTRA_LDFLAGS)
|
# 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
|
# Finds the multi-part object the current object will be linked into
|
||||||
modname-multi = $(sort $(foreach m,$(multi-used),\
|
modname-multi = $(sort $(foreach m,$(multi-used),\
|
||||||
|
Loading…
Reference in New Issue
Block a user