From: Chanwoo Choi Date: Thu, 22 Apr 2021 05:42:50 +0000 (+0900) Subject: Replace fPIE gcc option with fPIC X-Git-Tag: submit/tizen/20210512.071659^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dbdc0acea826534e452045aaff93dd5a154998f3;p=platform%2Fhal%2Fapi%2Flocation.git 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: Ib886d236fe1c9373c48fd2ba15ec04f847cb8e15 Signed-off-by: Chanwoo Choi --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ab7035..ecc6aa9 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")