[PATCH 1/2] test: tls: fix build with newer binutils
Baruch Siach
baruch at tkos.co.il
Wed Oct 2 05:54:09 UTC 2013
Hi uclibc list,
On Mon, Aug 26, 2013 at 08:45:52PM +0300, Baruch Siach wrote:
> Fix the following build failures:
>
> ld: tst-tls10.o: undefined reference to symbol 'f2a'
> ld: tst-tls12.o: undefined reference to symbol 'a1'
>
> binutils ld defaults to --no-copy-dt-needed-entries since version 2.22. Add
> library dependencies explicitly.
>
> Signed-off-by: Baruch Siach <baruch at tkos.co.il>
> ---
> test/tls/Makefile.in | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/test/tls/Makefile.in b/test/tls/Makefile.in
> index 875c607..ba45882 100644
> --- a/test/tls/Makefile.in
> +++ b/test/tls/Makefile.in
> @@ -102,9 +102,9 @@ LDFLAGS_tst-tls6 := -ldl
> LDFLAGS_tst-tls7 := -ldl
> LDFLAGS_tst-tls8 := -ldl
> LDFLAGS_tst-tls9 := -ldl
> -LDFLAGS_tst-tls10 := -Wl,-rpath-link=. tst-tlsmod8.so
> -LDFLAGS_tst-tls11 := -Wl,-rpath-link=. tst-tlsmod10.so
> -LDFLAGS_tst-tls12 := -Wl,-rpath-link=. tst-tlsmod12.so
> +LDFLAGS_tst-tls10 := -Wl,-rpath-link=. tst-tlsmod7.so tst-tlsmod8.so
This breaks the test because tst-tlsmod7.so comes first in the symbols search
order. Switching the order fixes the test. I'll resubmit this patch shortly.
baruch
> +LDFLAGS_tst-tls11 := -Wl,-rpath-link=. tst-tlsmod9.so tst-tlsmod10.so
> +LDFLAGS_tst-tls12 := -Wl,-rpath-link=. tst-tlsmod11.so tst-tlsmod12.so
> LDFLAGS_tst-tls13 := -ldl -Wl,-rpath-link=.
> LDFLAGS_tst-tls14 := -ldl -Wl,-rpath-link=. tst-tlsmod14a.so
> LDFLAGS_tst-tls15 := -ldl -Wl,-rpath-link=.
> --
> 1.8.4.rc3
>
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
More information about the uClibc
mailing list