[icinga-checkins] icinga.org: icinga2/master: Don't use -fvisibility=hidden for debug builds.

git at icinga.org git at icinga.org
Mon Feb 25 08:59:02 CET 2013


Module: icinga2
Branch: master
Commit: 8f11e0412da9eed9e41e0b7bd925b0bd212c0d46
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=8f11e0412da9eed9e41e0b7bd925b0bd212c0d46

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Mon Feb 25 08:58:44 2013 +0100

Don't use -fvisibility=hidden for debug builds.

---

 configure.ac |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/configure.ac b/configure.ac
index d27eabe..ec762f6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -72,8 +72,16 @@ AC_CHECK_LIB(ws2_32, getsockname)
 AC_CHECK_LIB(shlwapi, PathRemoveFileSpecA)
 AC_CHECK_FUNCS([backtrace_symbols execvpe pipe2])
 
+AC_MSG_CHECKING(whether to enable debugging)
+AC_ARG_ENABLE(debug, [  --enable-debug=[no/yes]   turn on debugging (default=no)],, enable_debug=no)
+if test "x$enable_debug" = "xyes"; then
+	CFLAGS="$CFLAGS -g -O0 -rdynamic"
+	CXXFLAGS="$CXXFLAGS -g -O0 -rdynamic"
+fi
+AC_MSG_RESULT($enable_debug)
+
 AX_C___ATTRIBUTE__
-if test "$ax_cv___attribute__" = "yes"; then
+if test "$ax_cv___attribute__" = "yes" && test "x$enable_debug" = "xno"; then
 	CFLAGS="$CFLAGS -fvisibility=hidden"
 	CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
 fi
@@ -84,14 +92,6 @@ AX_PYTHON_VERSION_ENSURE([2.5])
 AX_PYTHON_CSPEC
 AX_PYTHON_LSPEC
 
-AC_MSG_CHECKING(whether to enable debugging)
-AC_ARG_ENABLE(debug, [  --enable-debug=[no/yes]   turn on debugging (default=no)],, enable_debug=no)
-if test "x$enable_debug" = "xyes"; then
-        CFLAGS="$CFLAGS -g -O0"
-        CXXFLAGS="$CXXFLAGS -g -O0"
-fi
-AC_MSG_RESULT($enable_debug)
-
 AS_AC_EXPAND([ICINGA_PREFIX], $prefix)
 AC_DEFINE_UNQUOTED([ICINGA_PREFIX], "$ICINGA_PREFIX", [The installation prefix.])
 





More information about the icinga-checkins mailing list