diff options
author | unknown <jimw@mysql.com> | 2005-11-02 18:29:06 -0800 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-11-02 18:29:06 -0800 |
commit | 77f9df437de90919d5266af9e7cbb21f2c3b1ad6 (patch) | |
tree | b1867ae6fe89f4a26b8a423974441054508099ef /configure.in | |
parent | eef9b8402feba8238e5585bb032788ca90bff596 (diff) | |
download | mariadb-git-77f9df437de90919d5266af9e7cbb21f2c3b1ad6.tar.gz |
Don't add optimization flags to CFLAGS if the user specified their
own CFLAGS (ditto for CXXFLAGS). (Bug #12640)
configure.in:
Only add optimization flags when no CFLAGS (and/or CXXFLAGS) were specified.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 40a3e8ea5d4..f10c7b7a96e 100644 --- a/configure.in +++ b/configure.in @@ -1672,6 +1672,19 @@ if expr "$SYSTEM_TYPE" : ".*netware.*" > /dev/null; then OPTIMIZE_CXXFLAGS="$OPTIMIZE_CXXFLAGS -DNDEBUG" fi +# If the user specified CFLAGS, we won't add any optimizations +if test -n "$SAVE_CFLAGS" +then + OPTIMIZE_CFLAGS="" + DEBUG_OPTIMIZE_CC="" +fi +# Ditto for CXXFLAGS +if test -n "$SAVE_CXXFLAGS" +then + OPTIMIZE_CXXFLAGS="" + DEBUG_OPTIMIZE_CXX="" +fi + AC_ARG_WITH(debug, [ --without-debug Build a production version without debugging code], [with_debug=$withval], |