selftests/landlock: Build without static libraries
authorMickaël Salaün <mic@digikod.net>
Wed, 19 Oct 2022 20:05:36 +0000 (22:05 +0200)
committerMickaël Salaün <mic@digikod.net>
Wed, 19 Oct 2022 20:10:56 +0000 (22:10 +0200)
commit091873e47ef700e935aa80079b63929af599a0b2
tree2342ea7980027952e3404cb27a0eb774b26585a5
parent9abf2313adc1ca1b6180c508c25f22f9395cc780
selftests/landlock: Build without static libraries

The only (forced) static test binary doesn't depend on libcap.  Because
using -lcap on systems that don't have such static library would fail
(e.g. on Arch Linux), let's be more specific and require only dynamic
libcap linking.

Fixes: a52540522c95 ("selftests/landlock: Fix out-of-tree builds")
Cc: Anders Roxell <anders.roxell@linaro.org>
Cc: Guillaume Tucker <guillaume.tucker@collabora.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Cc: stable@vger.kernel.org
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Link: https://lore.kernel.org/r/20221019200536.2771316-1-mic@digikod.net
tools/testing/selftests/landlock/Makefile