summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2019-01-08 05:59:08 (GMT)
committerDongHun Kwak <dh0128.kwak@samsung.com>2019-01-08 06:44:53 (GMT)
commit1543b369b9e195a41bed90c6f5680b128fcd28d6 (patch)
treee295f51d1a957bd15a95ea4ed6c4505962015bcd
parent7502b819824658306a3990677d08cfba4a4ca629 (diff)
downloadboost-accepted/tizen_4.0_unified.zip
boost-accepted/tizen_4.0_unified.tar.gz
boost-accepted/tizen_4.0_unified.tar.bz2
- add "-O2", "-Wp,-D_FORTIFY_SOURCE=2", "-Wl,-z,relro", "-fstack-protector-strong" options Change-Id: I3cf0d0b91eb3c458eb008f13d59a08cf0273e126 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
-rw-r--r--packaging/boost.spec7
-rw-r--r--tools/build/src/tools/gcc.jam10
2 files changed, 12 insertions, 5 deletions
diff --git a/packaging/boost.spec b/packaging/boost.spec
index 7e59b63..1b21300 100644
--- a/packaging/boost.spec
+++ b/packaging/boost.spec
@@ -70,7 +70,7 @@ Summary: Boost C++ Libraries
License: BSL-1.0
Group: Base/Libraries
Version: 1.58.0
-Release: 0
+Release: 1
Source0: %{name}_%{file_version}.tar.bz2
Source1: boost-rpmlintrc
Source4: existing_extra_docs
@@ -436,11 +436,8 @@ using mpi ;
EOF
%endif
-# perform the compilation
./b2 %{?_smp_mflags} --prefix=%{_prefix} --libdir=%{_libdir} \
- --user-config=./user-config.jam ${CFLAGS:+cflags="$CFLAGS"} \
- ${CXXFLAGS:+cxxflags="$CXXFLAGS"} ${LDFLAGS:+linkflags="$LDFLAGS"}
-
+ --user-config=./user-config.jam toolset=gcc debug-symbols=on
%if %build_docs
cd doc
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> ;