preserve passed in CFLAGS

This commit is contained in:
Josh Coalson 2001-07-19 00:19:25 +00:00
parent 9e975add2b
commit 9ea7e2c3ad
1 changed files with 2 additions and 0 deletions

View File

@ -135,6 +135,7 @@ AC_SUBST(FLaC__USIZE32)
AC_SUBST(FLaC__SIZE64)
AC_SUBST(FLaC__USIZE64)
SAVE_CFLAGS="$CFLAGS"
CFLAGS='-I./include -I $(top_srcdir)/include -Wall -W'
if test x$debug = xtrue; then
CFLAGS="$CFLAGS -g -O0 -DDEBUG"
@ -144,6 +145,7 @@ CFLAGS="$CFLAGS -O3 -DNDEBUG"
CFLAGS="$CFLAGS -fomit-frame-pointer -funroll-loops -finline-functions -Winline -DFLAC__INLINE=__inline__"
fi
fi
CFLAGS="$CFLAGS $SAVE_CFLAGS"
AC_OUTPUT( Makefile \
src/Makefile \