]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
build-sys: link test-seccomp against seccomp libs (#4560)
authorMartin Pitt <martin.pitt@ubuntu.com>
Thu, 3 Nov 2016 21:15:33 +0000 (23:15 +0200)
committerGitHub <noreply@github.com>
Thu, 3 Nov 2016 21:15:33 +0000 (23:15 +0200)
Fixes build error on recent toolchains:

  ../src/test/test-seccomp.c:35: error: undefined reference to 'seccomp_arch_native'
  collect2: error: ld returned 1 exit status

Makefile.am

index f7652c23469d1d9b03579b6e07998bb7db3e6324..f2d8bf57f70180188df42e27b825feb4510daa1d 100644 (file)
@@ -2038,7 +2038,8 @@ test_seccomp_SOURCES = \
        src/test/test-seccomp.c
 
 test_seccomp_LDADD = \
-       libsystemd-shared.la
+       libsystemd-shared.la \
+       $(SECCOMP_LIBS)
 
 test_namespace_LDADD = \
        libcore.la