null+****@clear*****
null+****@clear*****
2012年 4月 13日 (金) 17:05:31 JST
Kouhei Sutou 2012-04-13 17:05:31 +0900 (Fri, 13 Apr 2012) New Revision: 58f60a60c980e0056d386267683c834d0d2c2cbe Log: cmake: link DL_LIBS Modified files: CMakeLists.txt lib/CMakeLists.txt Modified: CMakeLists.txt (+2 -0) =================================================================== --- CMakeLists.txt 2012-04-13 17:04:53 +0900 (a248af1) +++ CMakeLists.txt 2012-04-13 17:05:31 +0900 (b570e3d) @@ -65,6 +65,8 @@ endmacro() include(build/ac_macros/check_headers.m4) +ac_check_lib(dl dlopen) + if(UNIX) ac_check_headers(pthread.h) ac_check_lib(pthread pthread_mutex_init "" "") Modified: lib/CMakeLists.txt (+5 -1) =================================================================== --- lib/CMakeLists.txt 2012-04-13 17:04:53 +0900 (db8ad43) +++ lib/CMakeLists.txt 2012-04-13 17:05:31 +0900 (33e0be9) @@ -26,4 +26,8 @@ string(REGEX REPLACE "([^;]+)" "dat/\\1" add_library(libgroonga SHARED ${LIBGROONGA_SOURCES} ${LIBGRNDAT_SOURCES}) set_target_properties(libgroonga PROPERTIES OUTPUT_NAME "groonga") -target_link_libraries(libgroonga ${PTHREAD_LIBS} ${Z_LIBS} ${LZO2_LIBS}) +target_link_libraries(libgroonga + ${PTHREAD_LIBS} + ${Z_LIBS} + ${LZO2_LIBS} + ${DL_LIBS})