Remove unneeded fPIE gcc option 85/257285/1
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 22 Apr 2021 05:50:16 +0000 (14:50 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 22 Apr 2021 05:50:58 +0000 (14:50 +0900)
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>
CMakeLists.txt

index 1b3e104..8e2f855 100644 (file)
@@ -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")