diff --git a/rtkit.changes b/rtkit.changes index 16de997..2ecb06b 100644 --- a/rtkit.changes +++ b/rtkit.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 1 21:49:33 UTC 2015 - meissner@suse.com + +- build with PIE + ------------------------------------------------------------------- Sun Nov 09 23:38:00 UTC 2014 - Led diff --git a/rtkit.spec b/rtkit.spec index 5e73379..86fabd4 100644 --- a/rtkit.spec +++ b/rtkit.spec @@ -1,7 +1,7 @@ # # spec file for package rtkit # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -58,6 +58,8 @@ processes. %build autoreconf -fiv +export CFLAGS="$RPM_OPT_FLAGS -fPIE" +export LDFLAGS="-pie" %configure --disable-silent-rules \ %if 0%{?has_systemd} --with-systemdsystemunitdir=%{_unitdir} \ @@ -71,9 +73,6 @@ make %{?_smp_mflags} %makeinstall install -D org.freedesktop.RealtimeKit1.xml $RPM_BUILD_ROOT/%{_datadir}/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml -%clean -rm -rf $RPM_BUILD_ROOT - %preun %if 0%{?has_systemd} %service_del_preun rtkit-daemon.service