[llvm-commits] [llvm] r161880 - in /llvm/trunk: Makefile.config.in autoconf/configure.ac
Daniel Dunbar
daniel at zuster.org
Tue Aug 14 11:14:20 PDT 2012
Author: ddunbar
Date: Tue Aug 14 13:14:20 2012
New Revision: 161880
URL: http://llvm.org/viewvc/llvm-project?rev=161880&view=rev
Log:
[configure] Add a --enable-keep-symbols configure flag.
Modified:
llvm/trunk/Makefile.config.in
llvm/trunk/autoconf/configure.ac
Modified: llvm/trunk/Makefile.config.in
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.config.in?rev=161880&r1=161879&r2=161880&view=diff
==============================================================================
--- llvm/trunk/Makefile.config.in (original)
+++ llvm/trunk/Makefile.config.in Tue Aug 14 13:14:20 2012
@@ -258,6 +258,11 @@
#DEBUG_SYMBOLS = 1
@DEBUG_SYMBOLS@
+# When KEEP_SYMBOLS is enabled, installed executables will never have their
+# symbols stripped.
+#KEEP_SYMBOLS = 1
+ at KEEP_SYMBOLS@
+
# The compiler flags to use for optimized builds.
OPTIMIZE_OPTION := @OPTIMIZE_OPTION@
Modified: llvm/trunk/autoconf/configure.ac
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/autoconf/configure.ac?rev=161880&r1=161879&r2=161880&view=diff
==============================================================================
--- llvm/trunk/autoconf/configure.ac (original)
+++ llvm/trunk/autoconf/configure.ac Tue Aug 14 13:14:20 2012
@@ -542,6 +542,15 @@
AC_SUBST(DEBUG_SYMBOLS,[[DEBUG_SYMBOLS=1]])
fi
+dnl --enable-keep-symbols : do not strip installed executables
+AC_ARG_ENABLE(keep-symbols,
+ AS_HELP_STRING(--enable-keep-symbols,[Do not strip installed executables)]),,enableval=no)
+if test ${enableval} = "no" ; then
+ AC_SUBST(KEEP_SYMBOLS,[[]])
+else
+ AC_SUBST(KEEP_SYMBOLS,[[KEEP_SYMBOLS=1]])
+fi
+
dnl --enable-jit: check whether they want to enable the jit
AC_ARG_ENABLE(jit,
AS_HELP_STRING(--enable-jit,
More information about the llvm-commits
mailing list