summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMyoungJune Park <mj2004.park@samsung.com>2017-08-11 10:36:58 (GMT)
committerMyoungJune Park <mj2004.park@samsung.com>2017-08-11 10:37:22 (GMT)
commitd900ea887e1c8473bfa40411caef09d0326c5638 (patch)
tree90916283af73a38e30ed1eae4265a65453e7c6fb
parent16c28dac747f3550da5670829e05346a2f987aed (diff)
downloadfactory-reset-d900ea887e1c8473bfa40411caef09d0326c5638.zip
factory-reset-d900ea887e1c8473bfa40411caef09d0326c5638.tar.gz
factory-reset-d900ea887e1c8473bfa40411caef09d0326c5638.tar.bz2
Change-Id: I4ca0ed31c48710b5512a3cb237fbb2f6a11b047a
-rw-r--r--CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ec56ef4..992c58a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -53,7 +53,7 @@ FOREACH(flag ${pkgs_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
FIND_PROGRAM(UNAME NAMES uname)
EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH")
@@ -75,9 +75,9 @@ ADD_EXECUTABLE(resetCCMode ${SRCS_RESET_CCMODE})
ADD_EXECUTABLE(rstsmack ${SRCS_RSTSMACK})
ADD_EXECUTABLE(factory-reset-util ${SRCS_UTIL})
ADD_EXECUTABLE(factory-reset ${SRCS})
-TARGET_LINK_LIBRARIES(rstsmack ${pkgs_LDFLAGS})
-TARGET_LINK_LIBRARIES(factory-reset-util ${pkgs_LDFLAGS})
-TARGET_LINK_LIBRARIES(factory-reset ${pkgs_LDFLAGS})
+TARGET_LINK_LIBRARIES(rstsmack ${pkgs_LDFLAGS} -pie)
+TARGET_LINK_LIBRARIES(factory-reset-util ${pkgs_LDFLAGS} -pie)
+TARGET_LINK_LIBRARIES(factory-reset ${pkgs_LDFLAGS} -pie)
ADD_CUSTOM_TARGET(factory-reset-util.edj
COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images