From: Tom Hughes Date: Wed, 17 Aug 2005 08:50:51 +0000 (+0000) Subject: Pass AM_CFLAGS to the compiler when extracting the default linker X-Git-Tag: svn/VALGRIND_3_1_0~576 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=79342fc67ff648bc1a25f7b78bc5b6d3813cd5a4;p=thirdparty%2Fvalgrind.git Pass AM_CFLAGS to the compiler when extracting the default linker script so we are sure to get the 32 bit version when appropriate. Also pass ARCH_CORE_AM_CFLAGS in EXTRA_CFLAGS when building VEX so we can be sure to build a 32 bit VEX when appropriate. This should fix bug #110830. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4442 --- diff --git a/coregrind/Makefile.am b/coregrind/Makefile.am index 7a66a38bbc..47a37ba1af 100644 --- a/coregrind/Makefile.am +++ b/coregrind/Makefile.am @@ -191,14 +191,14 @@ vg_preload_core_so_LDFLAGS = \ # So we search for the line with a hex value "+ SIZEOF_HEADERS", and replace # all the hex values in that line with "kickstart_base". stage2.lds: Makefile - $(CC) -Wl,--verbose -nostdlib 2>&1 | sed \ + $(CC) $(AM_CFLAGS) -Wl,--verbose -nostdlib 2>&1 | sed \ -e '1,/^=====\+$$/d' \ -e '/^=====\+$$/d' \ -e '/\. = 0x[0-9A-Fa-f]\+ + SIZEOF_HEADERS/s/0x[0-9A-Fa-f]\+/kickstart_base/g' > $@ \ || rm -f $@ @VEX_DIR@/libvex.a: @VEX_DIR@/priv/main/vex_svnversion.h - $(MAKE) -C @VEX_DIR@ libvex.a EXTRA_CFLAGS="@PIE_AM_CFLAGS@" + $(MAKE) -C @VEX_DIR@ libvex.a EXTRA_CFLAGS="@ARCH_CORE_AM_CFLAGS@ @PIE_AM_CFLAGS@" @VEX_DIR@/priv/main/vex_svnversion.h: $(MAKE) -C @VEX_DIR@ version