summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-06-16 22:30:38 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-06-16 22:30:38 +0000
commite2a91a76dffcf8cda97b835f0693f9dc6f26ba68 (patch)
tree5d25de616c3f0b9175308cbba3c1f4b40ab40f7c /autoconf
parentdc9c76aca6cc31ee5c26c0356e10955b3e0b0440 (diff)
downloadllvm-e2a91a76dffcf8cda97b835f0693f9dc6f26ba68.tar.gz
llvm-e2a91a76dffcf8cda97b835f0693f9dc6f26ba68.tar.bz2
llvm-e2a91a76dffcf8cda97b835f0693f9dc6f26ba68.tar.xz
build/configure: Add support for --with-extra-ld-options flag (to provide extra
options just to pass to ld). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133206 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac11
1 files changed, 11 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 3d2faa3f2d..a39a6857c2 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -831,6 +831,17 @@ case "$withval" in
esac
AC_SUBST(EXTRA_OPTIONS,$EXTRA_OPTIONS)
+dnl Specify extra linker build options
+AC_ARG_WITH(extra-ld-options,
+ AS_HELP_STRING([--with-extra-ld-options],
+ [Specify additional options to link LLVM with]),,
+ withval=default)
+case "$withval" in
+ default) EXTRA_LD_OPTIONS= ;;
+ *) EXTRA_LD_OPTIONS=$withval ;;
+esac
+AC_SUBST(EXTRA_LD_OPTIONS,$EXTRA_LD_OPTIONS)
+
dnl Allow specific bindings to be specified for building (or not)
AC_ARG_ENABLE([bindings],AS_HELP_STRING([--enable-bindings],
[Build specific language bindings: all,auto,none,{binding-name} (default=auto)]),,