diff options
author | Sebastian Pop <spop@codeaurora.org> | 2012-04-16 04:11:45 +0000 |
---|---|---|
committer | Sebastian Pop <spop@codeaurora.org> | 2012-04-16 04:11:45 +0000 |
commit | 7e5c316b05d87a23abff03865d776bfb5634e7cd (patch) | |
tree | d4b3a185c3be2f2c3d6fe7e74bf00a017abecc76 /configure | |
parent | 9068bf5dd0b2ded590b3a3a7791f6878a9d61ae9 (diff) | |
download | external_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 'configure')
-rwxr-xr-x | configure | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -1442,6 +1442,7 @@ Optional Packages: --with-c-include-dirs Colon separated list of directories clang will search for headers --with-gcc-toolchain Directory where gcc is installed. + --with-default-sysroot Add --sysroot=<path> to all compiler invocations. --with-binutils-include Specify path to binutils/include/ containing plugin-api.h file for gold plugin. --with-bug-report-url Specify the URL where bug reports should be @@ -3802,7 +3803,7 @@ else llvm_cv_target_os_type="Darwin" ;; *-*-minix*) llvm_cv_target_os_type="Minix" ;; - *-*-freebsd*| *-*-kfreebsd-gnu) + *-*-freebsd* | *-*-kfreebsd-gnu) llvm_cv_target_os_type="FreeBSD" ;; *-*-openbsd*) llvm_cv_target_os_type="OpenBSD" ;; @@ -5583,6 +5584,20 @@ _ACEOF +# Check whether --with-sysroot was given. +if test "${with_sysroot+set}" = set; then + withval=$with_sysroot; +else + withval="" +fi + + +cat >>confdefs.h <<_ACEOF +#define DEFAULT_SYSROOT "$withval" +_ACEOF + + + # Check whether --with-binutils-include was given. if test "${with_binutils_include+set}" = set; then withval=$with_binutils_include; @@ -10386,7 +10401,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<EOF -#line 10387 "configure" +#line 10404 "configure" #include "confdefs.h" #if HAVE_DLFCN_H |