From 81d3550e24896c1929fda36335626a6807df3922 Mon Sep 17 00:00:00 2001 From: Zoltan Fridrich Date: Tue, 9 Nov 2021 16:26:56 +0100 Subject: [PATCH] Fix devel-usability test - turn off --as-needed linker flag so the libsecomp library does not get flagged as not needed (in which case the linking fails) resolves: rhbz#2019887 --- libseccomp.spec | 5 +++-- tests/devel-usability/runtest.sh | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libseccomp.spec b/libseccomp.spec index eaf092f..2719bee 100644 --- a/libseccomp.spec +++ b/libseccomp.spec @@ -1,6 +1,6 @@ Name: libseccomp Version: 2.5.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Enhanced seccomp library License: LGPLv2 URL: https://github.com/seccomp/libseccomp @@ -93,7 +93,8 @@ rm -f tests/36-sim-ipc_syscalls.tests tests/37-sim-ipc_syscalls_be.tests %{_libdir}/libseccomp.a %changelog -* Fri Nov 05 2021 Zoltan Fridrich - 2.5.2-1 +* Fri Nov 05 2021 Zoltan Fridrich - 2.5.2-2 +- fix devel-usability test - rebase to 2.5.2 resolves: rhbz#2019887 diff --git a/tests/devel-usability/runtest.sh b/tests/devel-usability/runtest.sh index 831b2a1..e5b27a5 100755 --- a/tests/devel-usability/runtest.sh +++ b/tests/devel-usability/runtest.sh @@ -6,7 +6,7 @@ TEST_SOURCE=test.c TEST_TARGET="${TEST_SOURCE/\.c/}" CXXFLAGS="$(rpm --eval '%{build_cxxflags}')" -LDFLAGS="$(rpm --eval '%{build_ldflags}')" +LDFLAGS="$(rpm --eval '%{build_ldflags}') -Wl,--no-as-needed" PKGFLAGS="$(pkg-config libseccomp --cflags --libs)" # build target using distribution-specific flags