Skip to content

Commit

Permalink
disable compiler optimizations for swig interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Sep 26, 2011
1 parent f634c62 commit b1043b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/configure
Expand Up @@ -150,6 +150,7 @@ COMP_DEFAULT_OPTS="-Wall -O2"
COMP_NO_OPTS="-Wall -O0"
COMPFLAGS_C=-fPIC
COMPFLAGS_CPP=-fPIC
COMPFLAGS_SWIG_CPP="-fPIC -O0"
SEDMI='sed -i'
test "$CFLAGS" && COMPFLAGS_C="$COMPFLAGS_C $CFLAGS"
test "$CXXFLAGS" && COMPFLAGS_CPP="$COMPFLAGS_CPP $CXXFLAGS"
Expand Down Expand Up @@ -411,6 +412,7 @@ EOF

if test "$_debug" = yes ; then
COMP_OPTS="-g $COMP_OPTS";
COMPFLAGS_SWIG_CPP="-g $COMPFLAGS_SWIG_CPP"
fi

echocheck "C Compiler flags"
Expand Down Expand Up @@ -4428,7 +4430,6 @@ write_dot_config()
#enable additional warnings / -Wfloat-equal -W
if test "$_cc_major" -ge "3" 2>/dev/null ; then
COMPFLAGS_C=`echo "$COMPFLAGS_C" | sed -e 's/\(-Wall\)/\1 -Wno-unused-parameter -Wformat -Wformat-security -Wparentheses -Wshadow/'`
COMPFLAGS_SWIG_CPP=`echo "$COMPFLAGS_CPP" | sed -e 's/-Wall//'`
COMPFLAGS_CPP=`echo "$COMPFLAGS_CPP" | sed -e 's/\(-Wall\)/\1 -Wno-unused-parameter -Wformat -Wformat-security -Wparentheses -Wshadow -Wno-deprecated/'`
fi

Expand Down

0 comments on commit b1043b0

Please sign in to comment.