]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit62b99b5c69e0e7d3e3b0d06ede2b50f2cd4e2f93
tree2342ea7980027952e3404cb27a0eb774b26585a5
parent6358759813eb1920a7e9bc57799a80a94f6c66b8
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: 195d8e9dfe25 ("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