modify sec option

This commit is contained in:
daidai_is_here 2019-12-26 14:55:11 +08:00
parent 8055f0541e
commit 5c8a9a1116
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