diff --git a/dbus-1-devel-doc.spec b/dbus-1-devel-doc.spec index 5d81c9c..16992b8 100644 --- a/dbus-1-devel-doc.spec +++ b/dbus-1-devel-doc.spec @@ -61,9 +61,12 @@ bus daemon). %build echo 'HTML_TIMESTAMP=NO' >> Doxyfile.in -# Skip generation of API doc manpages we do not ship -echo 'GENERATE_MAN=NO' >> Doxyfile.in - +# We use -fpie/-pie for the whole build; this is the recommended way to harden +# the build upstream, see discussion in fdo#46570 +export CFLAGS="%{optflags} -fno-strict-aliasing -fPIC -fpie" +export LDFLAGS="-pie" +export CXXFLAGS="%{optflags} -fno-strict-aliasing" +export V=1 %configure \ --disable-static \ --libexecdir=%{_libexecdir}/dbus-1 \ diff --git a/dbus-1-x11.spec b/dbus-1-x11.spec index 4105648..5f6e233 100644 --- a/dbus-1-x11.spec +++ b/dbus-1-x11.spec @@ -67,7 +67,6 @@ in this separate package so server systems need not install X. %build echo 'HTML_TIMESTAMP=NO' >> Doxyfile.in -autoreconf -fi # We use -fpie/-pie for the whole build; this is the recommended way to harden # the build upstream, see discussion in fdo#46570 export CFLAGS="%{optflags} -fno-strict-aliasing -fPIC -fpie"