summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2021-04-22 14:50:16 +0900
committerChanwoo Choi <cw00.choi@samsung.com>2021-04-22 14:50:58 +0900
commit6f0d90cea3cef30da5de4dcb1c58280a881fdc15 (patch)
tree2299db47585bc9e1c351133cbccbfc900ec4b9c1
parent94c68e97f9ac6d0b5357c5e41e9b522fa17c0b78 (diff)
downloadsensor-6f0d90cea3cef30da5de4dcb1c58280a881fdc15.tar.gz
sensor-6f0d90cea3cef30da5de4dcb1c58280a881fdc15.tar.bz2
sensor-6f0d90cea3cef30da5de4dcb1c58280a881fdc15.zip
Remove unneeded fPIE gcc option
The fPIE option is for the executable binary. It is not proper for shared library files. So that remove unneeded fPIE gcc option. Change-Id: I800016e2bb30b8a02d2170b9c87df4cd334dfa02 Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1b3e104..8e2f855 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -33,7 +33,7 @@ FOREACH(flag ${pkgs_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden -fPIE -fPIC")
+SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden -fPIC")
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -g -fno-omit-frame-pointer -finstrument-functions")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} -lrt")
SET(CMAKE_EXE_LINKER_FLAGS "-pie")