Skip to content

Commit 5de74b7

Browse files
committed
Link acl target with pthread library
This resolves a link failure with `-Wl,--no-undefined`.
1 parent a56558a commit 5de74b7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,13 @@ target_include_directories(acl_objs PRIVATE
231231

232232
add_library(acl SHARED $<TARGET_OBJECTS:acl_objs>)
233233
set_property(TARGET acl PROPERTY OUTPUT_NAME "alteracl")
234-
target_link_libraries(acl PRIVATE acl_check_sys_cmd acl_hash acl_threadsupport pkg_editor)
234+
target_link_libraries(acl PRIVATE
235+
acl_check_sys_cmd
236+
acl_hash
237+
acl_threadsupport
238+
pkg_editor
239+
Threads::Threads
240+
)
235241
if(UNIX)
236242
# we need this flag to expose symbols, otherwise linking will fail with:
237243
# "relocation against protected symbol X can not be used when making a shared object"

0 commit comments

Comments
 (0)