projects
/
platform
/
core
/
api
/
bluetooth.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21da2b2
)
Add the ASLR build option for test apps
99/235699/1
accepted/tizen/unified/20200611.134807
submit/tizen/20200610.060701
author
DoHyun Pyun
<dh79.pyun@samsung.com>
Tue, 9 Jun 2020 04:36:39 +0000
(13:36 +0900)
committer
DoHyun Pyun
<dh79.pyun@samsung.com>
Tue, 9 Jun 2020 04:39:01 +0000
(13:39 +0900)
Change-Id: I358596a7f181573354b887c55c7dfe4b17f23c55
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
test/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/test/CMakeLists.txt
b/test/CMakeLists.txt
index
a8d35f9
..
5c8019e
100644
(file)
--- a/
test/CMakeLists.txt
+++ b/
test/CMakeLists.txt
@@
-6,7
+6,8
@@
FOREACH(flag ${${fw_test}_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -fPIE")
+SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")
aux_source_directory(. sources)
FOREACH(src ${sources})