summaryrefslogtreecommitdiff
path: root/tools/build/src/tools/gcc.jam
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build/src/tools/gcc.jam')
-rw-r--r--tools/build/src/tools/gcc.jam10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/build/src/tools/gcc.jam b/tools/build/src/tools/gcc.jam
index 968f695..6639c92 100644
--- a/tools/build/src/tools/gcc.jam
+++ b/tools/build/src/tools/gcc.jam
@@ -385,6 +385,12 @@ toolset.flags gcc.compile OPTIONS <profiling>on : -pg ;
toolset.flags gcc.compile.c++ OPTIONS <rtti>off : -fno-rtti ;
toolset.flags gcc.compile.c++ OPTIONS <exception-handling>off : -fno-exceptions ;
+# Tizen Opention
+toolset.flags gcc.compile OPTIONS : -O2 ;
+toolset.flags gcc.compile OPTIONS : -Wp,-D_FORTIFY_SOURCE=2 ;
+toolset.flags gcc.compile OPTIONS : -Wl,-z,relro ;
+toolset.flags gcc.compile OPTIONS : -fstack-protector-strong ;
+
rule setup-fpic ( targets * : sources * : properties * )
{
local link = [ feature.get-values link : $(properties) ] ;
@@ -748,6 +754,10 @@ generators.override gcc.cygwin.link.dll : gcc.link.dll ;
# First, the common flags.
toolset.flags gcc.link OPTIONS <debug-symbols>on : -g ;
toolset.flags gcc.link OPTIONS <profiling>on : -pg ;
+
+# Tizen Opention
+toolset.flags gcc.link OPTIONS : -Wl,-z,relro ;
+
toolset.flags gcc.link USER_OPTIONS <linkflags> ;
toolset.flags gcc.link LINKPATH <library-path> ;
toolset.flags gcc.link FINDLIBS-ST <find-static-library> ;