From 8671065ce5d13d97fb3f42b6736985f591f53981 Mon Sep 17 00:00:00 2001 From: Stepan Kasal Date: Tue, 15 May 2007 20:46:01 +0200 Subject: [PATCH] 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 --- config/include-Makefile.am | 1 + configure.ac | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) 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="" -- 2.39.5