]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
wibbles
authorNicholas Nethercote <njn@valgrind.org>
Tue, 19 Jul 2005 00:40:16 +0000 (00:40 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Tue, 19 Jul 2005 00:40:16 +0000 (00:40 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4173

coregrind/Makefile.am

index eb284565b49126381307cda34886b4de8500b0c9..51307e6b7c2741581b50ea3177fb032ea28774eb 100644 (file)
@@ -140,7 +140,7 @@ stage2_extra= \
        @VEX_DIR@/libvex.a
 
 ## These ones must be linked in with the --whole-archive flag, because they
-## wouldn't get pulled into stage otherwise (because they contain symbols
+## wouldn't get pulled into stage2 otherwise (because they contain symbols
 ## only referred to by tool shared objects).
 stage2_extra2 = \
        m_replacemalloc/libreplacemalloc_core.a
@@ -152,19 +152,18 @@ st2_DEPS_common = \
        $(stage2_extra2)
 
 st2_LDFLAGS_common = \
-       -Wl,--export-dynamic -g
+       -Wl,--export-dynamic -g \
+       -Wl,--whole-archive $(stage2_extra2) -Wl,--no-whole-archive
 
 if USE_PIE
 stage2_DEPENDENCIES = $(st2_DEPS_common)
 stage2_LDFLAGS = \
        $(st2_LDFLAGS_common) \
-       -Wl,--whole-archive $(stage2_extra2) -Wl,--no-whole-archive \
        -pie
 else
 stage2_DEPENDENCIES = $(st2_DEPS_common) stage2.lds
 stage2_LDFLAGS = \
        $(st2_LDFLAGS_common) \
-       -Wl,--whole-archive $(stage2_extra2) -Wl,--no-whole-archive \
        -Wl,-defsym,kickstart_base=@KICKSTART_BASE@ -Wl,-T,stage2.lds
 endif