1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Index: rheolef/configure.ac
===================================================================
--- a/configure.ac
+++ b/configure.ac
@@ -1661,13 +1661,20 @@ m4_include(config/acoptim.m4)
# strip all possible -On flags and then force -O3
# note: use [...] to protect -O[0-9] regular expr
+if test x"${debian_packaging}" = x"yes"; then
+ # debian packaging: -g -O2 is required
+ CXXFLAGS_OPT="-O2"
+else
+ # otherwise: push optim flag
+ CXXFLAGS_OPT="-O3"
+fi
[
res=`echo ${CXXFLAGS} | grep -e '-O[0-9]' >/dev/null`
status=$?
if test ${status} = 0; then
CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's/-O[0-9]//g'`
fi
- CXXFLAGS="${CXXFLAGS} -O3"
+ CXXFLAGS="${CXXFLAGS} ${CXXFLAGS_OPT}"
]
dnl-------------------------------------------------------------------------
dnl #`--enable-optim`
|