|
@@ -297,7 +297,8 @@ cmd_hcompile.o = $(HOSTCC) $(filter-out $(PHONY),$<) $(DEPS-$(notdir $@)) -c -o
|
|
|
define link.so
|
|
|
$(Q)$(RM) $@ $@.$(2) $(dir $@)$(1)
|
|
|
@$(disp_ld)
|
|
|
- $(Q)$(CC) $(LDFLAGS-$(notdir $@)) -Wl,-soname=$(notdir $@).$(2) \
|
|
|
+ $(Q)$(CC) $(LDFLAGS-$(notdir $@)) $(LDFLAGS-y-$(@F)) \
|
|
|
+ -Wl,-soname=$(notdir $@).$(2) \
|
|
|
$(NOSTDLIB_CFLAGS) -o $(dir $@)$(1) $(START_FILE-$(notdir $@)) \
|
|
|
-Wl,--whole-archive $(firstword $^) -Wl,--no-whole-archive \
|
|
|
$(LIBS-$(notdir $@)) $(LIBGCC) $(END_FILE-$(notdir $@))
|