forked from openkylin/platform_build
am e915ab45: Place linker arguments after objects for gcc
* commit 'e915ab45a11f88c4fa5f2561c1aaca4b7d3d7593': Place linker arguments after objects for gcc
This commit is contained in:
commit
e04c2c21ee
|
@ -1292,13 +1292,6 @@ endef
|
|||
ifneq ($(HOST_CUSTOM_LD_COMMAND),true)
|
||||
define transform-host-o-to-executable-inner
|
||||
$(hide) $(PRIVATE_CXX) \
|
||||
-Wl,-rpath-link=$(HOST_OUT_INTERMEDIATE_LIBRARIES) \
|
||||
-Wl,-rpath,\$$ORIGIN/../lib \
|
||||
$(HOST_GLOBAL_LD_DIRS) \
|
||||
$(PRIVATE_LDFLAGS) \
|
||||
$(if $(PRIVATE_NO_DEFAULT_COMPILER_FLAGS),, \
|
||||
$(HOST_GLOBAL_LDFLAGS) \
|
||||
) \
|
||||
$(PRIVATE_ALL_OBJECTS) \
|
||||
-Wl,--whole-archive \
|
||||
$(call normalize-host-libraries,$(PRIVATE_ALL_WHOLE_STATIC_LIBRARIES)) \
|
||||
|
@ -1307,6 +1300,13 @@ $(hide) $(PRIVATE_CXX) \
|
|||
$(call normalize-host-libraries,$(PRIVATE_ALL_STATIC_LIBRARIES)) \
|
||||
$(if $(PRIVATE_GROUP_STATIC_LIBRARIES),-Wl$(comma)--end-group) \
|
||||
$(call normalize-host-libraries,$(PRIVATE_ALL_SHARED_LIBRARIES)) \
|
||||
-Wl,-rpath-link=$(HOST_OUT_INTERMEDIATE_LIBRARIES) \
|
||||
-Wl,-rpath,\$$ORIGIN/../lib \
|
||||
$(HOST_GLOBAL_LD_DIRS) \
|
||||
$(PRIVATE_LDFLAGS) \
|
||||
$(if $(PRIVATE_NO_DEFAULT_COMPILER_FLAGS),, \
|
||||
$(HOST_GLOBAL_LDFLAGS) \
|
||||
) \
|
||||
-o $@ \
|
||||
$(PRIVATE_LDLIBS)
|
||||
endef
|
||||
|
|
Loading…
Reference in New Issue