libselinux: turn into dlopen() dep
This commit is contained in:
@@ -218,7 +218,7 @@ common_test_dependencies = [
|
||||
libmount_cflags,
|
||||
librt,
|
||||
libseccomp_cflags,
|
||||
libselinux,
|
||||
libselinux_cflags,
|
||||
threads,
|
||||
]
|
||||
|
||||
@@ -432,7 +432,7 @@ executables += [
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files('test-selinux.c'),
|
||||
'dependencies' : libselinux,
|
||||
'dependencies' : libselinux_cflags,
|
||||
},
|
||||
test_template + {
|
||||
'sources' : files('test-set-disable-mempool.c'),
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "pkcs11-util.h"
|
||||
#include "qrcode-util.h"
|
||||
#include "seccomp-util.h"
|
||||
#include "selinux-util.h"
|
||||
#include "tests.h"
|
||||
#include "tpm2-util.h"
|
||||
|
||||
@@ -60,6 +61,7 @@ static int run(int argc, char **argv) {
|
||||
ASSERT_DLOPEN(dlopen_libblkid, HAVE_BLKID);
|
||||
ASSERT_DLOPEN(dlopen_libseccomp, HAVE_SECCOMP);
|
||||
ASSERT_DLOPEN(dlopen_libmount, true);
|
||||
ASSERT_DLOPEN(dlopen_libselinux, HAVE_SELINUX);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user