diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2021-04-22 14:56:25 +0900 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2021-04-22 15:02:12 +0900 |
commit | 3f117a30f7c6aacd8d5deafa49dd504ffd8b271a (patch) | |
tree | 985b5cb83a3df679f482704260b7ac4cc4f808b2 | |
parent | 6907634630325dacd93536fffc103a2bb957a8f0 (diff) | |
download | zigbee-3f117a30f7c6aacd8d5deafa49dd504ffd8b271a.tar.gz zigbee-3f117a30f7c6aacd8d5deafa49dd504ffd8b271a.tar.bz2 zigbee-3f117a30f7c6aacd8d5deafa49dd504ffd8b271a.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: I3dc02f18f57b6b97acccfd56700b85bc3b20c525
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 a8142be..49182fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,7 +30,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") |