Skip to content

Commit

Permalink
Revised CFLAGS in autogen.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwarat committed Aug 29, 2013
1 parent 3a237f8 commit 2335ca9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions autogen.sh
Expand Up @@ -9,6 +9,11 @@ aclocal -I m4 --force || exit 1
autoheader --force || exit 1
automake --add-missing --copy --force || exit 1
autoconf --force || exit 1
export CFLAGS="-Wall -g -O0 -Wl,--no-undefined"
export CXXFLAGS="$CFLAGS"
./configure "$@" || exit 1

if `echo "$@" | grep -q CFLAGS > /dev/null` ; then
./configure "$@" || exit 1
else
CFLAGS=${CFLAGS-"-Wall -Werror -Wformat -Werror=format-security"}
CXXFLAGS="$CFLAGS"
./configure "$@" CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" || exit 1
fi

0 comments on commit 2335ca9

Please sign in to comment.