diff options
author | Alon Bar-Lev <alon.barlev@gmail.com> | 2017-03-13 20:47:02 +0200 |
---|---|---|
committer | Alon Bar-Lev <alon.barlev@gmail.com> | 2017-03-14 15:07:32 +0200 |
commit | 5b99f50f00d68e765e40fd442c1bcfefb72798e8 (patch) | |
tree | 87e57b2a4a07466a5e507d6bd747a11dfba49a82 | |
parent | 007eff244e74031c4eb7e2ea05e8b5ee46264c53 (diff) | |
download | gnutls-5b99f50f00d68e765e40fd442c1bcfefb72798e8.tar.gz |
build: tests: resolve as-needed issue with seccomp
Incorrect ordering of -lseccomp:
<snip>
-Wl,--as-needed ../lib/.libs/libgnutls.so -lseccomp ./.libs/libutils.a
./.libs/libutils.a(seccomp.o): In function seccomp_init'
seccomp.c:(.text+0x2b): undefined reference to `seccomp_init'
<snip>
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
-rw-r--r-- | tests/Makefile.am | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 91bd87a7c2..c6d93f1a46 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -62,11 +62,13 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/doc/examples AM_LDFLAGS = -no-install -COMMON_LDADD = ../lib/libgnutls.la \ - $(LIBSOCKET) $(INET_NTOP_LIB) $(INET_PTON_LIB) $(LIBSECCOMP) +COMMON_GNUTLS_LDADD = ../lib/libgnutls.la +COMMON_DEPS_LDADD = $(LIBSOCKET) $(INET_NTOP_LIB) $(INET_PTON_LIB) $(LIBSECCOMP) +COMMON_LDADD = $(COMMON_GNUTLS_LDADD) $(COMMON_DEPS_LDADD) -LDADD = $(COMMON_LDADD) \ - libutils.la +LDADD = $(COMMON_GNUTLS_LDADD) \ + libutils.la \ + $(COMMON_DEPS_LDADD) dane_LDADD = $(LDADD) ../libdane/libgnutls-dane.la |