This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Fix tst-array{2,5} with --as-needed
- From: Adam Conrad <adconrad at 0c3 dot net>
- To: libc-alpha at sourceware dot org
- Date: Mon, 21 Jan 2013 20:30:08 -0700
- Subject: [PATCH] Fix tst-array{2,5} with --as-needed
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