aboutsummaryrefslogtreecommitdiffstats
path: root/autoconf
diff options
context:
space:
mode:
authorSebastian Pop <spop@codeaurora.org>2012-04-16 04:11:45 +0000
committerSebastian Pop <spop@codeaurora.org>2012-04-16 04:11:45 +0000
commit7e5c316b05d87a23abff03865d776bfb5634e7cd (patch)
treed4b3a185c3be2f2c3d6fe7e74bf00a017abecc76 /autoconf
parent9068bf5dd0b2ded590b3a3a7791f6878a9d61ae9 (diff)
downloadexternal_llvm-7e5c316b05d87a23abff03865d776bfb5634e7cd.zip
external_llvm-7e5c316b05d87a23abff03865d776bfb5634e7cd.tar.gz
external_llvm-7e5c316b05d87a23abff03865d776bfb5634e7cd.tar.bz2
add configure flag --with-default-sysroot
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 0a2c8b6..a3961ef 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -838,6 +838,13 @@ AC_ARG_WITH(gcc-toolchain,
AC_DEFINE_UNQUOTED(GCC_INSTALL_PREFIX,"$withval",
[Directory where gcc is installed.])
+AC_ARG_WITH(sysroot,
+ AS_HELP_STRING([--with-default-sysroot],
+ [Add --sysroot=<path> to all compiler invocations.]),,
+ withval="")
+AC_DEFINE_UNQUOTED(DEFAULT_SYSROOT,"$withval",
+ [Default <path> to all compiler invocations for --sysroot=<path>.])
+
dnl Allow linking of LLVM with GPLv3 binutils code.
AC_ARG_WITH(binutils-include,
AS_HELP_STRING([--with-binutils-include],