Change-Id: Icc49e8c8b1988eeb1894738dce03fc2bb3d076be
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
-SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -g -fno-omit-frame-pointer -finstrument-functions")
+SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -g -fno-omit-frame-pointer -finstrument-functions -fPIE")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
ADD_DEFINITIONS("-DANDROID")
ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS})
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} -pie)
INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin)