projects
/
platform
/
adaptation
/
emulator
/
emulator-daemon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db1e2ff
)
build: add ASLR (Address Space Layout Randomization) flag
18/41918/1
author
Jinhyung Choi
<jinhyung2.choi@samsung.com>
Wed, 3 Jun 2015 09:51:10 +0000
(18:51 +0900)
committer
Jinhyung Choi
<jinhyung2.choi@samsung.com>
Fri, 19 Jun 2015 06:03:05 +0000
(15:03 +0900)
Change-Id: I438d064d2a3b9cf7a7a9fa734643c986d73a4466
Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index e83ffd2dc71ba2d5c5d236cb92cc1838f3997bb4..f257d98bf7b8a1e533f818626ae61c2281472ca4 100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-85,7
+85,9
@@
ADD_DEFINITIONS(-Wall -O3 -omit-frame-pointer)
FOREACH(flag ${PKGS_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS}")
+
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} -Wall -fPIE")
+SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")
ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS})