From: jungmin76.park Date: Fri, 18 Oct 2013 07:03:23 +0000 (+0900) Subject: fix flags X-Git-Tag: accepted/tizen/20131018.123424^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4616fe76a454a5d5f59a901bddbe7b4d81023945;p=platform%2Fframework%2Fnative%2Fappwidget-service.git fix flags Change-Id: Iaf553145f2276010ce2cecc89c8509f3c2442b98 Signed-off-by: jungmin76.park --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 366f887..1533875 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,10 @@ INCLUDE_DIRECTORIES ( inc ) +FOREACH(flag ${this_target_CFLAGS}) + SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") +ENDFOREACH(flag) + SET (${this_target}_SOURCE_FILES src/OspAppWidgetService.cpp src/OspAppWidgetServiceEntry.cpp @@ -53,6 +57,8 @@ SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE) ## Create Library ADD_EXECUTABLE (${this_target} ${${this_target}_SOURCE_FILES}) +TARGET_LINK_LIBRARIES(${this_target} -Xlinker --no-undefined -Xlinker --as-needed -pie) +TARGET_LINK_LIBRARIES(${this_target} -Xlinker --version-script=${CMAKE_CURRENT_SOURCE_DIR}/system-service-export.ver) TARGET_LINK_LIBRARIES(${this_target} ${${this_target}_LDFLAGS} ${${this_target}_LIBRARIES}) ## Cory additional info