diff options
author | Seonah Moon <seonah1.moon@samsung.com> | 2017-08-09 15:33:29 +0900 |
---|---|---|
committer | Seonah Moon <seonah1.moon@samsung.com> | 2017-08-09 15:33:29 +0900 |
commit | 883c52234c45d62c130ccd518e422f9c9625f296 (patch) | |
tree | 1bc9f2aa96172299de7a5c1198ba7e28968879de | |
parent | 99339af89099ab085d29aee12aed3d08d31b2064 (diff) | |
download | dnsmasq-accepted/tizen/4.0/unified/20170828.222315.tar.gz dnsmasq-accepted/tizen/4.0/unified/20170828.222315.tar.bz2 dnsmasq-accepted/tizen/4.0/unified/20170828.222315.zip |
Apply ASLRtizen_4.0.m2_releasetizen_4.0.IoT.p2_releasetizen_4.0.IoT.p1_releasesubmit/tizen_4.0/20170828.100005submit/tizen/20170811.040030accepted/tizen/unified/20170814.060046accepted/tizen/4.0/unified/20170828.222315
Change-Id: I736599d7bd407a52c6904f121971659cc73bd94d
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 39869a9..a31e829 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,9 +55,10 @@ FOREACH(flag ${pkgs_CFLAGS}) ENDFOREACH(flag) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -fPIE") SET(CMAKE_C_FLAGS_DEBUG "-O0 -g") SET(CMAKE_C_FLAGS_RELEASE "-O2") +SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie") ADD_DEFINITIONS("-DPACKAGE=\"${PACKAGE}\"") ADD_DEFINITIONS("-DPACKAGE_NAME=\"${PKGNAME}\"") |