diff options
author | JinWang An <jinwang.an@samsung.com> | 2023-07-07 18:26:43 +0900 |
---|---|---|
committer | JinWang An <jinwang.an@samsung.com> | 2023-07-07 18:26:43 +0900 |
commit | f36fc5f5c9eeca34780dbb38ff893460a388c776 (patch) | |
tree | 09e888ebd691e74b5a0e94784a39e9e5b2cf6f8c | |
parent | 0f4640a69f10b356ca5834201baca4932ad1f8b4 (diff) | |
download | boost-tizen_6.0.tar.gz boost-tizen_6.0.tar.bz2 boost-tizen_6.0.zip |
Apply security build optionsaccepted/tizen/6.0/unified/20230710.084006tizen_6.0accepted/tizen_6.0_unified
Change-Id: Ie4c69072d4fa214ada0cf3fd2cee905603159beb
Signed-off-by: JinWang An <jinwang.an@samsung.com>
-rw-r--r-- | packaging/boost.spec | 4 | ||||
-rw-r--r-- | tools/build/src/tools/gcc.jam | 10 |
2 files changed, 11 insertions, 3 deletions
diff --git a/packaging/boost.spec b/packaging/boost.spec index 901f0d7e2f..f286510c0b 100644 --- a/packaging/boost.spec +++ b/packaging/boost.spec @@ -473,9 +473,7 @@ EOF # 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 b9bb9cf2ad..fe50829ea9 100644 --- a/tools/build/src/tools/gcc.jam +++ b/tools/build/src/tools/gcc.jam @@ -759,6 +759,12 @@ toolset.flags gcc.compile INCLUDES <include> ; toolset.flags gcc.compile.c++ TEMPLATE_DEPTH <c++-template-depth> ; toolset.flags gcc.compile.fortran USER_OPTIONS <fflags> ; +# 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 ; + ### ### Linking generators and actions. ### @@ -877,6 +883,10 @@ toolset.flags gcc.link FINDLIBS-ST <find-static-library> ; toolset.flags gcc.link FINDLIBS-SA <find-shared-library> ; toolset.flags gcc.link LIBRARIES <library-file> ; +# Tizen Opention +toolset.flags gcc.link OPTIONS : -Wl,-z,relro ; + + # Specify compile flags for linker as well as they may be needed for LTO toolset.flags gcc.link OPTIONS <local-visibility>hidden : -fvisibility=hidden -fvisibility-inlines-hidden ; toolset.flags gcc.link OPTIONS <local-visibility>protected : -fvisibility=protected ; |