summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2014-02-20 16:13:35 +0100
committerMatúš Kukan <matus.kukan@collabora.com>2014-02-21 07:52:23 +0100
commitd5951c04195e050d65d44c9578bd339dd41eee2f (patch)
tree077be2e6d6e59b9fdbd7bbe7fe8a947342e0bff3 /configure.ac
parentecf0dd03e93b2b048eb029f43ab206e6d5010af5 (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 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index cf9a3a7a6ce6..4e5715681c9b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5690,6 +5690,11 @@ AC_SUBST(COMPILER_PLUGINS)
AC_SUBST(CLANGDIR)
AC_SUBST(CLANGBUILD)
+# Plugin to help linker.
+# Add something like LD_PLUGIN=/usr/lib64/LLVMgold.so to your autogen.input.
+# This makes --enable-lto build with clang work.
+AC_SUBST(LD_PLUGIN)
+
dnl ===================================================================
dnl Set the MinGW sys-root
dnl ===================================================================