* ld-elf/shared.exp (libneeded1a.so): Override any system

supplied --as-needed or --add-needed flag.
This commit is contained in:
Alan Modra 2012-12-07 05:26:39 +00:00
parent db399005e8
commit 2eb64a9f4b
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-12-07 Alan Modra <amodra@gmail.com>
* ld-elf/shared.exp (libneeded1a.so): Override any system
supplied --as-needed or --add-needed flag.
2012-12-05 H.J. Lu <hongjiu.lu@intel.com>
PR ld/14915

View File

@ -183,7 +183,7 @@ set build_tests {
"-shared" "-fPIC"
{needed1b.c} {} "libneeded1b.so"}
{"Build libneeded1a.so"
"-shared -Ltmpdir -lneeded1b" "-fPIC"
"-shared -Wl,--add-needed,--no-as-needed -Ltmpdir -lneeded1b" "-fPIC"
{needed1a.c} {} "libneeded1a.so"}
{"Build libneeded1c.o"
"-r -nostdlib" ""