summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaLyong Cho <walyong.cho@samsung.com>2016-11-15 05:12:25 (GMT)
committerWaLyong Cho <walyong.cho@samsung.com>2016-11-15 05:17:29 (GMT)
commitb6e9651fa060df7840ae54dbdb5a9cf2a44f3fd7 (patch)
treeb95784327dcc1789319d4b75ee8dbda6a51727ef
parente33aa7cb13e24d438a42339e03e522cb135c99fd (diff)
downloadlibsystem-b6e9651fa060df7840ae54dbdb5a9cf2a44f3fd7.zip
libsystem-b6e9651fa060df7840ae54dbdb5a9cf2a44f3fd7.tar.gz
libsystem-b6e9651fa060df7840ae54dbdb5a9cf2a44f3fd7.tar.bz2
configure: cflags: add initial cflags
Change-Id: Id29d5fad8016144e31d49dabfd42b08871f10ce2 Signed-off-by: WaLyong Cho <walyong.cho@samsung.com>
-rw-r--r--configure.ac17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 3d7a691..b8c8daf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -53,6 +53,23 @@ if test -z "$GPERF" ; then
fi
# ------------------------------------------------------------------------------
+our_cflags=" \
+ -g -O2 \
+ -Werror \
+ -fpie"
+
+our_ldflags=" \
+ -Wl,--as-needed \
+ -Wl,--no-undefined \
+ -Wl,--gc-sections \
+ -Wl,-z,relro \
+ -Wl,-z,now \
+ -pie"
+
+AC_SUBST([OUR_CFLAGS], "$our_cflags")
+AC_SUBST([OUR_LDFLAGS], "$our_ldflags")
+
+# ------------------------------------------------------------------------------
PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2])
PKG_CHECK_MODULES(GLIB, [glib-2.0])
PKG_CHECK_MODULES(GIO, [gio-2.0])