From a26dcd144405e75708f96e41dfd0e30b1d7e079e Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Fri, 27 Apr 2012 17:54:26 +1000 Subject: [PATCH] Set a blank CXXFLAGS only if not already present --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 5f8c3d30..0c23ab15 100644 --- a/configure.ac +++ b/configure.ac @@ -1,11 +1,11 @@ AC_INIT([libgim], [0.1.0], [danny@nerdcruft.net]) +## Explicitly set an empty CXXFLAGS if not present to prevent AC_PROG_CXX from +## generating a default -O2. This allows us to manually select -O0 when +## debugging is enabled. +: ${CXXFLAGS=""} AC_CANONICAL_HOST -## We remove CXXFLAGS as autotools inserts them /AFTER/ our own CXXFLAGS, -## thus overriding any variables that both set (specifically we're concerned -## about optimisation flags). -CXXFLAGS="-g" AC_PROG_CXX AC_LANG([C++]) LT_INIT