From 4cf90f4696b9e8e400bd3a1e14c743f29ff6fe7b Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 21 Apr 2002 13:32:28 +0000 Subject: [PATCH] - don't check if the compiler supports const. No compiler we care about doesn't support it - readd -Werror - move setting of CFLAGS to the Makefile instead of the configure script, to avoid that the custom flags we use screw up configure checks git-svn-id: svn://svn.valgrind.org/valgrind/trunk@113 --- Makefile.am | 2 ++ addrcheck/Makefile.am | 2 ++ cachegrind/Makefile.am | 2 ++ configure.in | 4 ---- corecheck/Makefile.am | 2 ++ coregrind/Makefile.am | 2 ++ helgrind/Makefile.am | 2 ++ lackey/Makefile.am | 2 ++ memcheck/Makefile.am | 2 ++ none/Makefile.am | 2 ++ 10 files changed, 18 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index a657a5c54c..424f2bc9cb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,7 @@ SUBDIRS = demangle . docs tests +CFLAGS = -Winline -Wall -Werror -Wshadow -O -fomit-frame-pointer -g + valdir = $(libdir)/valgrind LDFLAGS = -Wl,-z -Wl,initfirst diff --git a/addrcheck/Makefile.am b/addrcheck/Makefile.am index a657a5c54c..424f2bc9cb 100644 --- a/addrcheck/Makefile.am +++ b/addrcheck/Makefile.am @@ -1,5 +1,7 @@ SUBDIRS = demangle . docs tests +CFLAGS = -Winline -Wall -Werror -Wshadow -O -fomit-frame-pointer -g + valdir = $(libdir)/valgrind LDFLAGS = -Wl,-z -Wl,initfirst diff --git a/cachegrind/Makefile.am b/cachegrind/Makefile.am index a657a5c54c..424f2bc9cb 100644 --- a/cachegrind/Makefile.am +++ b/cachegrind/Makefile.am @@ -1,5 +1,7 @@ SUBDIRS = demangle . docs tests +CFLAGS = -Winline -Wall -Werror -Wshadow -O -fomit-frame-pointer -g + valdir = $(libdir)/valgrind LDFLAGS = -Wl,-z -Wl,initfirst diff --git a/configure.in b/configure.in index 92e500e478..aeb0e48d37 100644 --- a/configure.in +++ b/configure.in @@ -70,9 +70,6 @@ AC_MSG_RESULT([none]) AC_SUBST(PREFERRED_STACK_BOUNDARY) -CFLAGS="-Winline -Wall -Wshadow -O -fomit-frame-pointer -g" -AC_SUBST(CFLAGS) - # Checks for the platform AC_CANONICAL_HOST @@ -237,7 +234,6 @@ AC_HEADER_STDC AC_CHECK_HEADERS([fcntl.h malloc.h stdlib.h string.h sys/socket.h sys/statfs.h sys/time.h termios.h unistd.h utime.h]) # Checks for typedefs, structures, and compiler characteristics. -AC_C_CONST AC_TYPE_UID_T AC_TYPE_OFF_T AC_TYPE_SIZE_T diff --git a/corecheck/Makefile.am b/corecheck/Makefile.am index a657a5c54c..424f2bc9cb 100644 --- a/corecheck/Makefile.am +++ b/corecheck/Makefile.am @@ -1,5 +1,7 @@ SUBDIRS = demangle . docs tests +CFLAGS = -Winline -Wall -Werror -Wshadow -O -fomit-frame-pointer -g + valdir = $(libdir)/valgrind LDFLAGS = -Wl,-z -Wl,initfirst diff --git a/coregrind/Makefile.am b/coregrind/Makefile.am index a657a5c54c..424f2bc9cb 100644 --- a/coregrind/Makefile.am +++ b/coregrind/Makefile.am @@ -1,5 +1,7 @@ SUBDIRS = demangle . docs tests +CFLAGS = -Winline -Wall -Werror -Wshadow -O -fomit-frame-pointer -g + valdir = $(libdir)/valgrind LDFLAGS = -Wl,-z -Wl,initfirst diff --git a/helgrind/Makefile.am b/helgrind/Makefile.am index a657a5c54c..424f2bc9cb 100644 --- a/helgrind/Makefile.am +++ b/helgrind/Makefile.am @@ -1,5 +1,7 @@ SUBDIRS = demangle . docs tests +CFLAGS = -Winline -Wall -Werror -Wshadow -O -fomit-frame-pointer -g + valdir = $(libdir)/valgrind LDFLAGS = -Wl,-z -Wl,initfirst diff --git a/lackey/Makefile.am b/lackey/Makefile.am index a657a5c54c..424f2bc9cb 100644 --- a/lackey/Makefile.am +++ b/lackey/Makefile.am @@ -1,5 +1,7 @@ SUBDIRS = demangle . docs tests +CFLAGS = -Winline -Wall -Werror -Wshadow -O -fomit-frame-pointer -g + valdir = $(libdir)/valgrind LDFLAGS = -Wl,-z -Wl,initfirst diff --git a/memcheck/Makefile.am b/memcheck/Makefile.am index a657a5c54c..424f2bc9cb 100644 --- a/memcheck/Makefile.am +++ b/memcheck/Makefile.am @@ -1,5 +1,7 @@ SUBDIRS = demangle . docs tests +CFLAGS = -Winline -Wall -Werror -Wshadow -O -fomit-frame-pointer -g + valdir = $(libdir)/valgrind LDFLAGS = -Wl,-z -Wl,initfirst diff --git a/none/Makefile.am b/none/Makefile.am index a657a5c54c..424f2bc9cb 100644 --- a/none/Makefile.am +++ b/none/Makefile.am @@ -1,5 +1,7 @@ SUBDIRS = demangle . docs tests +CFLAGS = -Winline -Wall -Werror -Wshadow -O -fomit-frame-pointer -g + valdir = $(libdir)/valgrind LDFLAGS = -Wl,-z -Wl,initfirst -- 2.47.2