[llvm-commits] [llvm] r65019 - /llvm/trunk/autoconf/configure.ac
Nick Lewycky
nicholas at mxc.ca
Wed Feb 18 22:18:26 PST 2009
Author: nicholas
Date: Thu Feb 19 00:18:24 2009
New Revision: 65019
URL: http://llvm.org/viewvc/llvm-project?rev=65019&view=rev
Log:
Default to building with position independent code. This may increase LLVM's
run time but will make LLVM easier to use as a library.
Modified:
llvm/trunk/autoconf/configure.ac
Modified: llvm/trunk/autoconf/configure.ac
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/autoconf/configure.ac?rev=65019&r1=65018&r2=65019&view=diff
==============================================================================
--- llvm/trunk/autoconf/configure.ac (original)
+++ llvm/trunk/autoconf/configure.ac Thu Feb 19 00:18:24 2009
@@ -363,15 +363,15 @@
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,
More information about the llvm-commits
mailing list