From 92b99b9b18569679ebdc423fe032a943ee7f690d Mon Sep 17 00:00:00 2001 From: nbd Date: Tue, 5 Aug 2008 22:00:32 +0000 Subject: [PATCH] fix valgrind compile git-svn-id: svn://svn.openwrt.org/openwrt/packages@12171 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- utils/valgrind/Makefile | 1 + utils/valgrind/patches/100-a_out_header.patch | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 utils/valgrind/patches/100-a_out_header.patch diff --git a/utils/valgrind/Makefile b/utils/valgrind/Makefile index 4db3d5a19..b52983ce1 100644 --- a/utils/valgrind/Makefile +++ b/utils/valgrind/Makefile @@ -53,6 +53,7 @@ DEFAULT_SUPP += "uclibc.supp" define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ + CFLAGS="$(TARGET_CFLAGS)" \ all install endef diff --git a/utils/valgrind/patches/100-a_out_header.patch b/utils/valgrind/patches/100-a_out_header.patch new file mode 100644 index 000000000..ad3de83d8 --- /dev/null +++ b/utils/valgrind/patches/100-a_out_header.patch @@ -0,0 +1,10 @@ +--- valgrind-3.2.3.orig/coregrind/m_debuginfo/readstabs.c ++++ valgrind-3.2.3/coregrind/m_debuginfo/readstabs.c +@@ -43,6 +43,7 @@ + #include "priv_readstabs.h" /* self */ + + /* --- !!! --- EXTERNAL HEADERS start --- !!! --- */ ++#define CONFIG_ARCH_SUPPORTS_AOUT /* XXX */ + #include /* stabs defns */ + /* --- !!! --- EXTERNAL HEADERS end --- !!! --- */ +