Browse Source

also link the shared libuci to libdl

Felix Fietkau 13 years ago
parent
commit
5b6e96336d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      CMakeLists.txt

+ 1 - 0
CMakeLists.txt

@@ -17,6 +17,7 @@ SET(LIB_SOURCES libuci.c file.c util.c delta.c)
 
 ADD_LIBRARY(uci-shared SHARED ${LIB_SOURCES})
 SET_TARGET_PROPERTIES(uci-shared PROPERTIES OUTPUT_NAME uci)
+TARGET_LINK_LIBRARIES(uci-shared dl)
 
 ADD_LIBRARY(uci-static STATIC ${LIB_SOURCES})
 SET_TARGET_PROPERTIES(uci-static PROPERTIES OUTPUT_NAME uci)