Skip to content

Commit 4f23086

Browse files
tanmayv25mc-nv
authored andcommitted
Link properly with dlclose and dlopen libraries
1 parent 3d85a2c commit 4f23086

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ target_link_libraries(
240240
dlpack
241241
Threads::Threads
242242
triton-backend-utils # from repo-backend
243-
-ldl # dlopen
243+
${CMAKE_DL_LIBS} # dlopen and dlclose
244244
-lrt # shared memory
245245
triton-core-serverstub # from repo-core
246246
ZLIB::ZLIB
@@ -253,6 +253,7 @@ target_link_libraries(
253253
dlpack
254254
Threads::Threads
255255
triton-backend-utils # from repo-backend
256+
${CMAKE_DL_LIBS} # dlopen and dlclose
256257
pybind11::embed
257258
-lrt # shared memory
258259
-larchive # libarchive

0 commit comments

Comments
 (0)