From 9a4ca08e5ffee842d0ede78c4ce9f745f0ca42b6 Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Fri, 6 Jul 2007 04:26:32 +0000 Subject: Remove usage of TARGET_LDFLAGS all together. Both TARGET_CFLAGS and TARGET_LDFLAGS are passed with the compilers and linker respectively so that we can pass CFLAGS and LDFLAGS on a per-package basis which was not possible previously and a number of packages failed to build. TARGET_CFLAGS usage in package makefiles will be removed next. --- package/procps/procps-remove-flags.patch | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 package/procps/procps-remove-flags.patch (limited to 'package/procps/procps-remove-flags.patch') diff --git a/package/procps/procps-remove-flags.patch b/package/procps/procps-remove-flags.patch new file mode 100644 index 000000000..cb4dc56d5 --- /dev/null +++ b/package/procps/procps-remove-flags.patch @@ -0,0 +1,26 @@ +diff -u procps-3.2.5/Makefile procps-3.2.5-patched/Makefile +--- procps-3.2.5/Makefile 2005-01-25 22:55:26.000000000 -0600 ++++ procps-3.2.5-patched/Makefile 2007-07-05 23:09:24.251423681 -0500 +@@ -70,9 +70,7 @@ + CURSES := -lncurses + + # Preprocessor flags. +-PKG_CPPFLAGS := -D_GNU_SOURCE -I proc +-CPPFLAGS := -I/usr/include/ncurses +-ALL_CPPFLAGS := $(PKG_CPPFLAGS) $(CPPFLAGS) ++ALL_CPPFLAGS := -D_GNU_SOURCE -I proc + + # Left out -Wconversion due to noise in glibc headers. + # Left out -Wunreachable-code and -Wdisabled-optimization +@@ -91,11 +89,9 @@ + -Wstrict-prototypes -Wmissing-prototypes + # Note that some stuff below is conditional on CFLAGS containing + # an option that starts with "-g". (-g, -g2, -g3, -ggdb, etc.) +-CFLAGS := -O2 -s + ALL_CFLAGS := $(PKG_CFLAGS) $(CFLAGS) + + PKG_LDFLAGS := -Wl,-warn-common +-LDFLAGS := + ALL_LDFLAGS := $(PKG_LDFLAGS) $(LDFLAGS) + + ############ Add some extra flags if gcc allows -- cgit v1.2.3