This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]