1
0
forked from bip/bip

don't override user var. Thanks to Alex Legler

Based on gentoo-x86/net-irc/bip/files/bip-configure.patch
See http://www.gnu.org/software/autoconf/manual/automake.html#User-Variables
If user doesn't specify CFLAGS, default value is "-Wall -Wextra -g -O2".
This commit is contained in:
Pierre-Louis Bonicoli 2011-09-14 06:30:09 +02:00
parent 7e1c80a65a
commit 559fa7ed44
2 changed files with 1 additions and 10 deletions

View File

@ -13,13 +13,8 @@ src_bip_SOURCES = src/conf.y src/lex.l \
src_bipmkpw_SOURCES = src/bipmkpw.c src/md5.c src/util.c
AM_YFLAGS= -d
BUILT_SOURCES = src/conf.c src/conf.h src/lex.c
if DEBUG
AM_CFLAGS+=-Wall -g
AM_LDFLAGS+=-g
else
AM_CFLAGS+=-Wall
endif
AM_CFLAGS=-Wall -Wextra
dist_man_MANS = bip.1 bip.conf.5 bipmkpw.1

View File

@ -44,16 +44,12 @@ AC_ARG_ENABLE([pie], AS_HELP_STRING([--disable-pie], [Do not build a position in
AM_CONDITIONAL(DEBUG, test x$enable_debug = xyes)
AS_IF([test "x$enable_debug" = "xyes"], [
CFLAGS="-O0 -g -W -Wall"
LDFLAGS="-g"
AC_CHECK_FUNC(backtrace_symbols_fd, [
AC_DEFINE(HAVE_BACKTRACE, [], [Use glibc backtrace on fatal()])
LDFLAGS="-rdynamic $LDFLAGS"
backtrace="(with backtrace)"
])
], [
CFLAGS="-O2 -g -W -Wall"
LDFLAGS="-g"
enable_debug=no
])