# HG changeset patch # User Matt Johnston # Date 1520043016 -28800 # Node ID ee7a546e3e6dc2215287e214c850b86616b77023 # Parent 56ec2214144f1084c1bb83928a86ab7b00d4d77e Fix CFLAGS for configure diff -r 56ec2214144f -r ee7a546e3e6d configure.ac --- a/configure.ac Fri Mar 02 00:11:27 2018 +0800 +++ b/configure.ac Sat Mar 03 10:10:16 2018 +0800 @@ -15,6 +15,7 @@ AC_MSG_NOTICE([Source directory Mercurial base revision $hgrev]) fi +ORIGCFLAGS="$CFLAGS" # Checks for programs. AC_PROG_CC @@ -35,7 +36,7 @@ }]) # set compile flags prior to other tests -if test -z "$OLDCFLAGS" && test "$GCC" = "yes"; then +if test -z "$ORIGCFLAGS" && test "$GCC" = "yes"; then AC_MSG_NOTICE(No \$CFLAGS set... using "-Os -W -Wall" for GCC) CFLAGS="-Os -W -Wall" fi