diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-02-20 16:13:35 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-02-21 07:52:23 +0100 |
commit | d5951c04195e050d65d44c9578bd339dd41eee2f (patch) | |
tree | 077be2e6d6e59b9fdbd7bbe7fe8a947342e0bff3 /solenv/gbuild | |
parent | ecf0dd03e93b2b048eb029f43ab206e6d5010af5 (diff) |
Allow to set LD_PLUGIN and use it for 'ar' - helps -flto build with clang.
So, it's possible to just add LD_PLUGIN=/usr/lib64/LLVMgold.so to
autogen.input and it works.
Change-Id: I35cdebfc918793c2ff99fd4f6dce9319b459be0e
Diffstat (limited to 'solenv/gbuild')
-rw-r--r-- | solenv/gbuild/platform/unxgcc.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/unxgcc.mk b/solenv/gbuild/platform/unxgcc.mk index 20a84e467775..86be4061ae7a 100644 --- a/solenv/gbuild/platform/unxgcc.mk +++ b/solenv/gbuild/platform/unxgcc.mk @@ -198,6 +198,7 @@ define gb_LinkTarget__command_staticlink $(call gb_Helper_abbreviate_dirs,\ rm -f $(1) && \ $(gb_AR) -rsu $(1) \ + $(if $(LD_PLUGIN),--plugin $(LD_PLUGIN)) \ $(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \ $(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \ $(foreach object,$(ASMOBJECTS),$(call gb_AsmObject_get_target,$(object))) \ |