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:
parent
7e1c80a65a
commit
559fa7ed44
@ -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
|
src_bipmkpw_SOURCES = src/bipmkpw.c src/md5.c src/util.c
|
||||||
AM_YFLAGS= -d
|
AM_YFLAGS= -d
|
||||||
BUILT_SOURCES = src/conf.c src/conf.h src/lex.c
|
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
|
dist_man_MANS = bip.1 bip.conf.5 bipmkpw.1
|
||||||
|
|
||||||
|
@ -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)
|
AM_CONDITIONAL(DEBUG, test x$enable_debug = xyes)
|
||||||
AS_IF([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_CHECK_FUNC(backtrace_symbols_fd, [
|
||||||
AC_DEFINE(HAVE_BACKTRACE, [], [Use glibc backtrace on fatal()])
|
AC_DEFINE(HAVE_BACKTRACE, [], [Use glibc backtrace on fatal()])
|
||||||
LDFLAGS="-rdynamic $LDFLAGS"
|
LDFLAGS="-rdynamic $LDFLAGS"
|
||||||
backtrace="(with backtrace)"
|
backtrace="(with backtrace)"
|
||||||
])
|
])
|
||||||
], [
|
], [
|
||||||
CFLAGS="-O2 -g -W -Wall"
|
|
||||||
LDFLAGS="-g"
|
|
||||||
enable_debug=no
|
enable_debug=no
|
||||||
])
|
])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user