fPIE option can also be applied when compiling library
Change-Id: Ib70b8aa91acea4857088dcd9d2c809f0da48e7d5
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
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")