summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2017-08-09 15:33:29 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2017-08-09 15:33:29 +0900
commit883c52234c45d62c130ccd518e422f9c9625f296 (patch)
tree1bc9f2aa96172299de7a5c1198ba7e28968879de
parent99339af89099ab085d29aee12aed3d08d31b2064 (diff)
downloaddnsmasq-883c52234c45d62c130ccd518e422f9c9625f296.tar.gz
dnsmasq-883c52234c45d62c130ccd518e422f9c9625f296.tar.bz2
dnsmasq-883c52234c45d62c130ccd518e422f9c9625f296.zip
Change-Id: I736599d7bd407a52c6904f121971659cc73bd94d
-rw-r--r--CMakeLists.txt3
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}\"")