Pārlūkot izejas kodu

configure.ac: add option enable/disable-full-gdb-information which enables/disables gcc options -gdwarf-2 -g3 (enabled by default)

Nathalie Furmento 7 gadi atpakaļ
vecāks
revīzija
f5691a20a9
1 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  1. 6 1
      configure.ac

+ 6 - 1
configure.ac

@@ -2014,7 +2014,12 @@ else
 	CFLAGS="-O3 $CFLAGS"
 	CXXFLAGS="-O3 $CXXFLAGS"
 fi
-if test x$GCC = xyes; then
+
+AC_MSG_CHECKING(whether full gdb information should be enabled)
+AC_ARG_ENABLE(full-gdb-information, [AS_HELP_STRING([--disable-full-gdb-information], [disable full gdb information])],
+			enable_full_gdb_information=$enableval, enable_full_gdb_information=yes)
+AC_MSG_RESULT($enable_full_gdb_information)
+if test x$enable_full_gdb_information = xyes -a x$GCC = xyes; then
 	CFLAGS+=" -gdwarf-2 -g3"
 	CXXFLAGS+=" -gdwarf-2 -g3"
 	LDFLAGS+=" -gdwarf-2 -g3"