aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2012-08-14 18:14:20 +0000
committerDaniel Dunbar <daniel@zuster.org>2012-08-14 18:14:20 +0000
commit8b5bee495f8ffcaad8f8b24f93b10c674d84f0e5 (patch)
tree9a145e1fab6ad39fdeb56cb84aa5d0aae0e8f9e4
parente60da02281d9de3aec4b22924b6cf1bd1a83af0c (diff)
[configure] Add a --enable-keep-symbols configure flag.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161880 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Makefile.config.in5
-rw-r--r--autoconf/configure.ac9
2 files changed, 14 insertions, 0 deletions
diff --git a/Makefile.config.in b/Makefile.config.in
index 6d06f16b35..e3bd2a207a 100644
--- a/Makefile.config.in
+++ b/Makefile.config.in
@@ -258,6 +258,11 @@ ENABLE_WERROR = @ENABLE_WERROR@
#DEBUG_SYMBOLS = 1
@DEBUG_SYMBOLS@
+# When KEEP_SYMBOLS is enabled, installed executables will never have their
+# symbols stripped.
+#KEEP_SYMBOLS = 1
+@KEEP_SYMBOLS@
+
# The compiler flags to use for optimized builds.
OPTIMIZE_OPTION := @OPTIMIZE_OPTION@
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 4dde3a6dfa..7fa883e9cc 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -542,6 +542,15 @@ else
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,