forked from OSchip/llvm-project
Default to building with position independent code. This may increase LLVM's
run time but will make LLVM easier to use as a library. llvm-svn: 65019
This commit is contained in:
parent
b2f4cdb233
commit
7db7eb6e40
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue