use libdl
authorFelix Fietkau <nbd@openwrt.org>
Sat, 26 Mar 2011 20:53:17 +0000 (21:53 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 26 Mar 2011 20:53:17 +0000 (21:53 +0100)
CMakeLists.txt
lua/CMakeLists.txt

index 14fbacb95d341bf9ff887f847c0fcf999fe7685a..3d7d735c5bcfe2dd08b519b10033663e3e4eafb4 100644 (file)
@@ -23,16 +23,16 @@ SET_TARGET_PROPERTIES(uci-static PROPERTIES OUTPUT_NAME uci)
 
 ADD_EXECUTABLE(cli cli.c)
 SET_TARGET_PROPERTIES(cli PROPERTIES OUTPUT_NAME uci)
-TARGET_LINK_LIBRARIES(cli uci-shared)
+TARGET_LINK_LIBRARIES(cli uci-shared dl)
 
 ADD_EXECUTABLE(cli-static cli.c)
 SET_TARGET_PROPERTIES(cli-static PROPERTIES OUTPUT_NAME uci-static)
-TARGET_LINK_LIBRARIES(cli-static uci-static)
+TARGET_LINK_LIBRARIES(cli-static uci-static dl)
 
 ADD_LIBRARY(ucimap STATIC ucimap.c)
 
 ADD_EXECUTABLE(ucimap-example ucimap-example.c)
-TARGET_LINK_LIBRARIES(ucimap-example uci-static ucimap)
+TARGET_LINK_LIBRARIES(ucimap-example uci-static ucimap dl)
 
 ADD_SUBDIRECTORY(lua)
 
index ad773a48bf25231c9f1309c88f85c6f76d6a9c29..533317aa08d18510d245da03c2e0ad122de0e907 100644 (file)
@@ -28,7 +28,7 @@ SET_TARGET_PROPERTIES(uci_lua PROPERTIES
        OUTPUT_NAME uci
        PREFIX ""
 )
-TARGET_LINK_LIBRARIES(uci_lua uci)
+TARGET_LINK_LIBRARIES(uci_lua uci dl)
 
 INSTALL(TARGETS uci_lua
        LIBRARY DESTINATION ${LUAPATH}