!2 modify sec option

Merge pull request !2 from daidai_is_here/dqw-test2
This commit is contained in:
openeuler-ci-bot 2019-12-26 14:58:29 +08:00 committed by Gitee
commit 402c2e709f
2 changed files with 4 additions and 1 deletions

3
config_for_secure_g++ Normal file
View File

@ -0,0 +1,3 @@
rpm_name:wxGTK3
sec_opt:-fPIC -D_FORTIFY_SOURCE=2 -O2 -Wtrampolines
fs_opt:

View File

@ -111,7 +111,7 @@ sed -i -e 's|$CPPUNIT_CONFIG --version|$CPPUNIT_CONFIG --modversion|' configure
%build
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
export LDFLAGS="-Wl,--as-needed"
export LDFLAGS="-Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,--as-needed"
export CPPUNIT_CONFIG="/usr/bin/pkg-config cppunit"
%global _configure ../configure