From: WaLyong Cho Date: Tue, 15 Nov 2016 05:12:25 +0000 (+0900) Subject: configure: cflags: add initial cflags X-Git-Tag: submit/tizen/20180322.062032~2^2~2^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b6e9651fa060df7840ae54dbdb5a9cf2a44f3fd7;p=platform%2Fcore%2Fsystem%2Flibsystem.git configure: cflags: add initial cflags Change-Id: Id29d5fad8016144e31d49dabfd42b08871f10ce2 Signed-off-by: WaLyong Cho --- diff --git a/configure.ac b/configure.ac index 3d7a691..b8c8daf 100644 --- a/configure.ac +++ b/configure.ac @@ -52,6 +52,23 @@ if test -z "$GPERF" ; then AC_MSG_ERROR([*** gperf not found]) 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])