diff --git a/CMakeLists.txt b/CMakeLists.txt index 262930bee..858e310c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -381,7 +381,7 @@ IF(WANT_JACK) SET(STATUS_JACK "OK (weak linking enabled)") SET(JACK_INCLUDE_DIRS "") # use dlsym instead - SET(JACK_LIBRARIES "dl") + SET(JACK_LIBRARIES ${CMAKE_DL_LIBS}) ELSE() SET(STATUS_JACK "OK") ENDIF()