Change-Id: I35cb5a9928cdd5f610135b2f80199cdc0e2eede1
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden -g -Wall -Werror -Wno-error=deprecated-declarations -O2")
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIE")
ADD_DEFINITIONS("-DBADGE_USE_DLOG")
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS})
ADD_EXECUTABLE(badge_init ${INIT-SRCS})
-TARGET_LINK_LIBRARIES(badge_init ${pkgs_LDFLAGS} badge)
+TARGET_LINK_LIBRARIES(badge_init ${pkgs_LDFLAGS} badge "-pie")
MESSAGE(${LIB_INSTALL_DIR} ====)
INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR})