summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoram Bae <boram21.bae@samsung.com>2021-03-22 12:05:37 +0900
committerBoram Bae <boram21.bae@samsung.com>2021-03-22 12:05:37 +0900
commit31562d6e5c6d66d21002c45d0e3eac9b88f6796f (patch)
tree8514560b09f4ebbd25dd9b52c9398f341c022fe5
parent508300ebcd3dc462a42af5ac43671f8f0b56fe3b (diff)
downloadsensor-31562d6e5c6d66d21002c45d0e3eac9b88f6796f.tar.gz
sensor-31562d6e5c6d66d21002c45d0e3eac9b88f6796f.tar.bz2
sensor-31562d6e5c6d66d21002c45d0e3eac9b88f6796f.zip
Change-Id: I20fee1c80f11d9b84edfa10b7a7fa4d610bdcf28 Signed-off-by: Boram Bae <boram21.bae@samsung.com>
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3501524..697f63e 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")
+SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden -fPIE -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")