diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2009-02-19 06:18:24 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2009-02-19 06:18:24 +0000 |
commit | 7e66462d9d5a435b87824d7175b83f68a8a6da20 (patch) | |
tree | 9735580af4f449e5ca79c927b124c36684ed1080 /autoconf | |
parent | d18a2c1eaefba1ccea7bfa7bb2b94c571cec5547 (diff) | |
download | external_llvm-7e66462d9d5a435b87824d7175b83f68a8a6da20.zip external_llvm-7e66462d9d5a435b87824d7175b83f68a8a6da20.tar.gz external_llvm-7e66462d9d5a435b87824d7175b83f68a8a6da20.tar.bz2 |
Default to building with position independent code. This may increase LLVM's
run time but will make LLVM easier to use as a library.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65019 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 83d5468..3f8d06b 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -363,15 +363,15 @@ case "$enableval" in esac AC_DEFINE_UNQUOTED([ENABLE_THREADS],$ENABLE_THREADS,[Define if threads enabled]) -dnl Allow building with position independent code +dnl Allow building without position independent code AC_ARG_ENABLE(pic, AS_HELP_STRING([--enable-pic], - [Build LLVM with Position Independent Code (default is NO)]),, + [Build LLVM with Position Independent Code (default is YES)]),, enableval=default) case "$enableval" in yes) AC_SUBST(ENABLE_PIC,[1]) ;; no) AC_SUBST(ENABLE_PIC,[0]) ;; - default) AC_SUBST(ENABLE_PIC,[0]) ;; + default) AC_SUBST(ENABLE_PIC,[1]) ;; *) AC_MSG_ERROR([Invalid setting for --enable-pic. Use "yes" or "no"]) ;; esac AC_DEFINE_UNQUOTED([ENABLE_PIC],$ENABLE_PIC, |