diff --git a/xsd.spec b/xsd.spec index 846f5b6..827889c 100644 --- a/xsd.spec +++ b/xsd.spec @@ -1,6 +1,6 @@ Name: xsd Version: 4.0.0 -Release: 13%{?dist} +Release: 14%{?dist} Summary: W3C XML schema to C++ data binding compiler # Exceptions permit otherwise GPLv2 incompatible combination with ASL 2.0 License: GPLv2 with exceptions and ASL 2.0 @@ -55,10 +55,10 @@ This package contains API documentation for %{name}. rm -rf libcutl %build -%if 0%{?rhel} +%if 0%{?rhel} < 7 %{!?__global_ldflags: %global __global_ldflags -Wl,-z,relro} %endif -make verbose=1 CXX=g++ CC=gcc CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="%{__global_ldflags}" BOOST_LINK_SYSTEM=y EXTERNAL_LIBCUTL=y +make verbose=1 CXX=g++ CC=gcc CXXFLAGS="$RPM_OPT_FLAGS -fPIC -pie -Wl,-z,now" LDFLAGS="%{__global_ldflags} -fPIC -pie -Wl,-z,now" BOOST_LINK_SYSTEM=y EXTERNAL_LIBCUTL=y %install rm -rf apidocdir @@ -123,6 +123,9 @@ make -j 1 test EXTERNAL_LIBCUTL=y BOOST_LINK_SYSTEM=y %doc apidocdir/* %changelog +* Fri Feb 05 2016 Antonio Trande - 4.0.0-14 +- Set flags for hardened builds + * Fri Feb 05 2016 Fedora Release Engineering - 4.0.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild