Patchwork [v2] test: tls: fix build with newer binutils

login
register
mail settings
Submitter Baruch Siach
Date Oct. 2, 2013, 7:08 a.m.
Message ID <5666ee41a4a1a249497ad112c711a8b90dba551e.1380697594.git.baruch@tkos.co.il>
Download mbox | patch
Permalink /patch/279659/
State Accepted, archived
Headers show

Comments

Baruch Siach - Oct. 2, 2013, 7:08 a.m.
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@tkos.co.il>
---
v2: switch the order of tst-tls10 dependecies

 test/tls/Makefile.in | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
aldot - Nov. 6, 2013, 9:29 p.m.
On Wed, Oct 02, 2013 at 10:08:29AM +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.

Applied, thanks!

Patch

diff --git a/test/tls/Makefile.in b/test/tls/Makefile.in
index 875c607..7ab4e2a 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-tlsmod8.so tst-tlsmod7.so
+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=.