[patch] Fix test suite failures with --as-needed
Andreas Jaeger
aj@suse.com
Mon Apr 16 09:51:00 GMT 2012
On Monday, April 16, 2012 11:39:39 Allan McRae wrote:
> Running the testsuite with -Wl,--as-needed in LDFLAGS introduces the
> following test failures:
Does building glibc itself with --as-needed in LDFLAGS work now? I remember
it does not, so I wonder.
> make[2]: *** [/build/src/glibc-build/stdlib/tst-putenv.out] Error 1
> make[2]: *** [/build/src/glibc-build/nptl/tst-cancel24] Error 1
> make[2]: *** [/build/src/glibc-build/nptl/tst-tls6.out] Error 1
> make[2]: *** [/build/src/glibc-build/elf/nodelete2.out] Error 1
> make[2]: *** [/build/src/glibc-build/elf/next.out] Error 1
> make[2]: *** [/build/src/glibc-build/elf/reldep5.out] Error 127
> make[2]: *** [/build/src/glibc-build/elf/reldep8.out] Error 134
> make[2]: *** [/build/src/glibc-build/elf/noload.out] Error 1
> make[2]: *** [/build/src/glibc-build/elf/unload4.out] Error 127
> make[2]: *** [/build/src/glibc-build/elf/order2.out] Error 1
> make[2]: *** [/build/src/glibc-build/elf/reldep6.out] Error 1
> make[2]: *** [/build/src/glibc-build/elf/tst-initorder2.out] Error 1
> make[2]: *** [/build/src/glibc-build/elf/tst-initorder.out] Error 1
>
> Add $(no-as-needed) to LDFLAGS where required to fix this.
>
> Tested i686 and x86_64 linux.
>
>
> 2012-04-16 Allan McRae <allan@archlinux.org>
>
> * elf/Makefile: Fix linking tests with --as-needed
> * nptl/Makefile: Likewise
> * stdlib/Makefile: Likewise
This needs a separate ChangeLog entry for nptl/ChangeLog for nptl/Makefile.
We also add "." at the end of entries.
The changes itself look fine to me but I'd like to have somebody else
review this as well and look at whether we should support this at all
Allan, thanks for the patch!
Andreas
--
Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
More information about the Libc-alpha
mailing list