projects
/
platform
/
adaptation
/
bluetooth-firmware-bcm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b760435
)
Add the PIE option for the excutable binary
88/143188/1
accepted/tizen/4.0/unified/20170828.224220
accepted/tizen/unified/20170811.021140
accepted/tizen/unified/20170814.060146
submit/tizen/20170809.230017
submit/tizen/20170811.080019
submit/tizen_4.0/20170828.100001
submit/tizen_4.0/20170828.110001
author
DoHyun Pyun
<dh79.pyun@samsung.com>
Wed, 9 Aug 2017 04:14:19 +0000
(13:14 +0900)
committer
DoHyun Pyun
<dh79.pyun@samsung.com>
Wed, 9 Aug 2017 04:14:19 +0000
(13:14 +0900)
Change-Id: I141bf379c2fd2a6ad4c2bd78ae6ff865b38c1849
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
919624a
..
ff2d9b6
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-7,7
+7,8
@@
FOREACH(flag ${package_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror -fPIE")
+SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")
ADD_SUBDIRECTORY(set-address)
ADD_SUBDIRECTORY(tools)