From 556f00e4af55e78836c45f47b0662ab44bbb8b48 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 20 May 2008 14:03:10 +0000 Subject: Made fixes pointed out by GCC 4.2 and -D_FORTIFY_SOURCES=2 --- server/configure.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'server/configure.in') diff --git a/server/configure.in b/server/configure.in index f2c6f7e..8cfb673 100644 --- a/server/configure.in +++ b/server/configure.in @@ -3,6 +3,15 @@ AC_INIT(src/pracrod.cc) AM_INIT_AUTOMAKE( pracrod, 0.0.1 ) +dnl ====================== +dnl Compile with debug options +dnl ====================== +AC_ARG_WITH(debug, [ --with-debug build with debug support]) +if test x$with_debug == xyes; then + AC_MSG_WARN([*** Building with debug support!]) + CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Werror -g -O0" +fi + AC_PROG_CXX AC_PROG_LIBTOOL @@ -23,7 +32,6 @@ fi AC_SUBST(MYPREFIX) AC_DEFINE_UNQUOTED(ETC, "$MYPREFIX/etc", [The path to the config files]) - dnl ====================== dnl Use efence in linking and includes dnl ====================== -- cgit v1.2.3