diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2021-04-22 14:45:35 +0900 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2021-04-22 14:45:35 +0900 |
commit | 0da5439dd8471483a0bcd2d6bf187873c0d4dc53 (patch) | |
tree | 70de33e562f23a977452136357739b2dc7746daa | |
parent | a74401d641995ff7ca825d693d19562b9be58eb4 (diff) | |
download | nfc-0da5439dd8471483a0bcd2d6bf187873c0d4dc53.tar.gz nfc-0da5439dd8471483a0bcd2d6bf187873c0d4dc53.tar.bz2 nfc-0da5439dd8471483a0bcd2d6bf187873c0d4dc53.zip |
Replace fPIE gcc option with fPIC
The fPIE option is for the executable binary.
It is not proper for shared library files.
So that correct the wrong use-case by using fPIC.
Change-Id: Id22cf9c0161b2f342a6817979aeb857b4c14fe86
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6216e6b..eaa916f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,7 +29,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 -fPIC") SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -g -fno-omit-frame-pointer -finstrument-functions") SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -lrt") SET(CMAKE_EXE_LINKER_FLAGS "-pie") |