summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMyungki Lee <mk5004.lee@samsung.com>2017-08-09 16:32:59 +0900
committerMyungki Lee <mk5004.lee@samsung.com>2017-08-09 16:32:59 +0900
commita2ed0bb1c1de10afe608f8784bedd8f438f0e45c (patch)
tree6a31fcbe970915a0ad93850d040c5eb464358779
parent045c3f28bcee9aa8f979fda1283f9211ed255da0 (diff)
downloadwidget-service-a2ed0bb1c1de10afe608f8784bedd8f438f0e45c.tar.gz
widget-service-a2ed0bb1c1de10afe608f8784bedd8f438f0e45c.tar.bz2
widget-service-a2ed0bb1c1de10afe608f8784bedd8f438f0e45c.zip
Apply ASLR to widget_test
Change-Id: I1b08be045240c8656300e7a8e7571dc23e3c1f58 Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
-rw-r--r--CMakeLists.txt5
-rw-r--r--tool/CMakeLists.txt5
2 files changed, 6 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 852b17d..cefea10 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -68,10 +68,6 @@ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION ${LIB_I
CONFIGURE_FILE(${PROJECT_NAME}.pc.in ${PROJECT_NAME}.pc @ONLY)
SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${PROJECT_NAME}.pc")
-ADD_EXECUTABLE(widget_test tool/widget_test.c)
-TARGET_LINK_LIBRARIES(widget_test ${pkgs_LDFLAGS} ${pkg_extra_LDFLAGS} widget_service)
-INSTALL(TARGETS widget_test DESTINATION bin)
-
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/widget_service.h DESTINATION include/${PROJECT_NAME})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/widget_service_internal.h DESTINATION include/${PROJECT_NAME})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/widget_errno.h DESTINATION include/${PROJECT_NAME})
@@ -89,5 +85,6 @@ INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/wayland.mobile.540x960.resolution.ini DES
INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/wayland.mobile.1440x2560.resolution.ini DESTINATION /usr/share/${PROJECT_NAME}/1440x2560 RENAME "resolution.ini" PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
ADD_SUBDIRECTORY(parser)
+ADD_SUBDIRECTORY(tool)
# End of a file
diff --git a/tool/CMakeLists.txt b/tool/CMakeLists.txt
new file mode 100644
index 0000000..ebc4787
--- /dev/null
+++ b/tool/CMakeLists.txt
@@ -0,0 +1,5 @@
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIE")
+
+ADD_EXECUTABLE(widget_test widget_test.c)
+TARGET_LINK_LIBRARIES(widget_test ${pkgs_LDFLAGS} ${pkg_extra_LDFLAGS} widget_service "-pie")
+INSTALL(TARGETS widget_test DESTINATION bin)