Skip to content

Commit aa3fad9

Browse files
committed
Link the init_teardown test with libdl
Link the init_teardown test with libdl explicitly for systems with glibc < 2.34. The init_teardown test uses dlopen(), dlsym() and dlclose(). Fixes: #543 Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
1 parent a2422af commit aa3fad9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,10 @@ endif()
287287
if(LINUX
288288
AND UMF_BUILD_SHARED_LIBRARY
289289
AND UMF_POOL_SCALABLE_ENABLED)
290-
add_umf_test(NAME init_teardown SRCS test_init_teardown.c)
290+
add_umf_test(
291+
NAME init_teardown
292+
SRCS test_init_teardown.c
293+
LIBS dl)
291294
# append LD_LIBRARY_PATH to the libumf
292295
set_property(
293296
TEST umf-init_teardown

0 commit comments

Comments
 (0)