Fix build lib
authorJoohyun Kim <joohyune.kim@samsung.com>
Thu, 11 Jul 2013 10:37:35 +0000 (19:37 +0900)
committerJoohyun Kim <joohyune.kim@samsung.com>
Thu, 11 Jul 2013 10:37:35 +0000 (19:37 +0900)
Change-Id: I64add7f3963efb5c909735b7b4585956951eafce
Signed-off-by: Joohyun Kim <joohyune.kim@samsung.com>
src/system-server/CMakeLists.txt

index 45de55e..85ba624 100644 (file)
@@ -42,11 +42,24 @@ SET (${this_target}_SOURCE_FILES
 
 INCLUDE(FindPkgConfig)
 pkg_check_modules(system_pkgs REQUIRED
-       capi-system-media-key
-       capi-network-tethering
-       capi-network-bluetooth
-       capi-network-wifi
        capi-media-sound-manager
+       capi-network-bluetooth
+       capi-network-wifi
+       capi-network-tethering
+       capi-system-device
+       capi-system-info
+       capi-system-media-key
+       capi-system-runtime-info
+       capi-system-system-settings
+       capi-telephony-sim
+       eina
+       elementary
+       haptic
+       icu-i18n
+       libxml-2.0
+       sysman
+       tapi
+       vconf
        wifi-direct
 )
 
@@ -71,12 +84,16 @@ SET(CMAKE_CXX_FLAGS "${OSP_DEBUG_FLAGS} ${OSP_OPT_FLAGS} ${CMAKE_CXX_FLAGS} ${EX
 ## Create Library
 ADD_LIBRARY (${this_target} SHARED ${${this_target}_SOURCE_FILES})
 
+SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined -Wl,--as-needed")
+
 TARGET_LINK_LIBRARIES(${this_target} osp-appfw)
+TARGET_LINK_LIBRARIES(${this_target} ${system_pkgs_LDFLAGS})
 TARGET_LINK_LIBRARIES(${this_target} capi-network-tethering)
 TARGET_LINK_LIBRARIES(${this_target} capi-network-bluetooth)
 TARGET_LINK_LIBRARIES(${this_target} capi-network-wifi)
 TARGET_LINK_LIBRARIES(${this_target} capi-media-sound-manager)
 TARGET_LINK_LIBRARIES(${this_target} wifi-direct)
+TARGET_LINK_LIBRARIES(${this_target} sysman)
 
 SET_TARGET_PROPERTIES(${this_target}
                PROPERTIES