summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSungguk Na <sungguk.na@samsung.com>2017-08-09 16:02:45 +0900
committerSungguk Na <sungguk.na@samsung.com>2017-08-09 16:02:45 +0900
commita2c1a33fb10155365b7ba9cac6c28036a26f7f56 (patch)
tree0c525278eb392993b0df77f9802fb510eddc7e1d
parent14795f7c2a7ed1eda1b694bcc98aed4aefed3cde (diff)
downloadmemps-a2c1a33fb10155365b7ba9cac6c28036a26f7f56.tar.gz
memps-a2c1a33fb10155365b7ba9cac6c28036a26f7f56.tar.bz2
memps-a2c1a33fb10155365b7ba9cac6c28036a26f7f56.zip
Change-Id: I1d0210ec580c1b6e483b70e8eba8ab382e517be2 Signed-off-by: Sungguk Na <sungguk.na@samsung.com>
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 298e0e8..0ccc893 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,7 +8,8 @@ SET (SOURCES
${CMAKE_SOURCE_DIR}/memps.c
)
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIE")
+SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")
ADD_EXECUTABLE (${PROJECT_NAME} ${SOURCES})