Remove fPIE option from CMAKE_CXX_FLAGS 12/324112/1
authorIlho Kim <ilho159.kim@samsung.com>
Tue, 13 May 2025 06:26:04 +0000 (15:26 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Tue, 13 May 2025 06:26:04 +0000 (15:26 +0900)
fPIE option can also be applied when compiling library

Change-Id: Ib70b8aa91acea4857088dcd9d2c809f0da48e7d5
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
CMakeLists.txt

index f87c4d81115bf520cd0d0b31f1e5c51b362fd0d5..e47dc9e1db1e91701859c211982ce574999e60a8 100755 (executable)
@@ -8,7 +8,7 @@ SET(LIBDIR ${LIB_INSTALL_DIR})
 SET(INCLUDEDIR "\${prefix}/include")
 
 ## Compiler flags
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -Wall -Werror -ffunction-sections -fdata-sections -fmerge-all-constants -fPIE")
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -Wall -Werror -ffunction-sections -fdata-sections -fmerge-all-constants")
 
 ## Linker flags
 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed,--gc-sections -pie")