From: DoHyun Pyun Date: Tue, 9 Jun 2020 04:36:39 +0000 (+0900) Subject: Add the ASLR build option for test apps X-Git-Tag: submit/tizen/20200610.060701^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c2e8c8e0080c7472a1eb655237f35aace0d0439b;p=platform%2Fcore%2Fapi%2Fbluetooth.git Add the ASLR build option for test apps Change-Id: I358596a7f181573354b887c55c7dfe4b17f23c55 Signed-off-by: DoHyun Pyun --- diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index a8d35f9..5c8019e 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -6,7 +6,8 @@ FOREACH(flag ${${fw_test}_CFLAGS}) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") ENDFOREACH(flag) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -fPIE") +SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie") aux_source_directory(. sources) FOREACH(src ${sources})