Fix hardcoded link to dl library

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 357bffb17e)
r14.0.x
Slávek Banko 10 years ago
parent 81799c1cf9
commit 7c73823e9f

@ -27,3 +27,16 @@ endif( )
find_package( TQt ) find_package( TQt )
find_package( TQtQUI ) find_package( TQtQUI )
find_package( TDE ) find_package( TDE )
##### check for libdl ###########################
set( DL_LIBRARIES dl )
check_library_exists( ${DL_LIBRARIES} dlopen /lib HAVE_LIBDL )
if( NOT HAVE_LIBDL )
unset( DL_LIBRARIES )
check_function_exists( dlopen HAVE_DLOPEN )
if( HAVE_DLOPEN )
set( HAVE_LIBDL 1 )
endif( HAVE_DLOPEN )
endif( NOT HAVE_LIBDL )

@ -24,7 +24,7 @@ link_directories(
tde_add_library( kstartperf SHARED AUTOMOC tde_add_library( kstartperf SHARED AUTOMOC
SOURCES libkstartperf.c SOURCES libkstartperf.c
VERSION 1.0.0 VERSION 1.0.0
LINK dl LINK ${DL_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR} DESTINATION ${LIB_INSTALL_DIR}
) )

Loading…
Cancel
Save