From: Stepan Kasal Date: Tue, 15 May 2007 18:46:01 +0000 (+0200) Subject: build-sys: move the optimization flags to AM_CFLAGS X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8671065ce5d13d97fb3f42b6736985f591f53981;p=util-linux build-sys: move the optimization flags to AM_CFLAGS 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 --- diff --git a/config/include-Makefile.am b/config/include-Makefile.am index d3fffa76..61d45cd2 100644 --- a/config/include-Makefile.am +++ b/config/include-Makefile.am @@ -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@ diff --git a/configure.ac b/configure.ac index d24ce099..8b62decf 100644 --- a/configure.ac +++ b/configure.ac @@ -401,8 +401,6 @@ fi AC_SUBST([SUID_CFLAGS]) -CPPFLAGS="-fsigned-char -fomit-frame-pointer $CPPFLAGS" - LIBS=""