]> err.no Git - util-linux/commitdiff
build-sys: move the optimization flags to AM_CFLAGS
authorStepan Kasal <skasal@redhat.com>
Tue, 15 May 2007 18:46:01 +0000 (20:46 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 16 May 2007 09:43:29 +0000 (11:43 +0200)
The optimization flags are not preprocessor flags.
Moreover, CPPFLAGS and CFLAGS shall be overridable at make time, the
configure script shall not touch them.
Setting AM_CFLAGS in config/include-Makefile.am seems to be TRW.

Signed-off-by: Stepan Kasal <skasal@redhat.com>
config/include-Makefile.am
configure.ac

index d3fffa760ed2f88174c185e4b49ec897550f65fb..61d45cd20fe887241b2412c5deeffb998f7b1b58 100644 (file)
@@ -5,6 +5,7 @@ infodir = $(datadir)/info
 mandir = $(datadir)/man
 
 AM_CPPFLAGS = -include $(top_builddir)/config.h -I$(top_srcdir)/include
+AM_CFLAGS = -fsigned-char -fomit-frame-pointer
 
 DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
 
index d24ce099535d4d3c4cfd8c4e6d542866400e11dd..8b62decf1139bfb1e9cb3891869cc66645447fc2 100644 (file)
@@ -401,8 +401,6 @@ fi
 
 AC_SUBST([SUID_CFLAGS])
 
-CPPFLAGS="-fsigned-char -fomit-frame-pointer $CPPFLAGS"
-
 LIBS=""