[PATCH] Fix tst-array{2,5} with --as-needed
Adam Conrad
adconrad@0c3.net
Tue Jan 22 03:30:00 GMT 2013
Ubuntu's toolchain defaults to --as-needed. tst-array2 and
tst-array5 fail unless built with --no-as-needed, so add it
to the Makefile. Tested locally to DTRT. Okay to commit?
2013-01-21 Adam Conrad <adconrad@0c3.net>
* elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
(LDFLAGS-tst-array5): Likewise.
diff --git a/elf/Makefile b/elf/Makefile
index 84f8397..6d4b365 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -849,6 +849,9 @@ LDFLAGS-tst-execstack-needed = -Wl,-z,noexecstack
LDFLAGS-tst-execstack-prog = -Wl,-z,execstack
endif
+LDFLAGS-tst-array2 = $(no-as-needed)
+LDFLAGS-tst-array5 = $(no-as-needed)
+
$(objpfx)tst-array1.out: tst-array1.exp $(objpfx)tst-array1
$(test-program-cmd) > $@
cmp $@ tst-array1.exp > /dev/null
More information about the Libc-alpha
mailing list