From 82ac6f9d1f08fe88152bc00c2dcce90923a8660de3289ebb667dcdd7bf1b3194 Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Wed, 21 Sep 2016 22:29:13 +0000 Subject: [PATCH] - disable PIE on sle11 OBS-URL: https://build.opensuse.org/package/show/server:irc/irssi?expand=0&rev=71 --- irssi.changes | 5 +++++ irssi.spec | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/irssi.changes b/irssi.changes index 474904e..fcad5ba 100644 --- a/irssi.changes +++ b/irssi.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Sep 21 22:24:11 UTC 2016 - mrueckert@suse.de + +- disable PIE on sle11 + ------------------------------------------------------------------- Wed Sep 21 22:07:13 UTC 2016 - mrueckert@suse.de diff --git a/irssi.spec b/irssi.spec index 1a6c81a..dd8f0cc 100644 --- a/irssi.spec +++ b/irssi.spec @@ -109,8 +109,14 @@ Authors: %if 0%{?sles_version} == 9 export PKG_CONFIG_PATH="/opt/gnome/%{_lib}/pkgconfig:$PKG_CONFIG_PATH" %endif -export CFLAGS="%{optflags} -fno-strict-aliasing -DGLIB_DISABLE_DEPRECATION_WARNINGS -fPIE" + +export CFLAGS="%{optflags} -fno-strict-aliasing -DGLIB_DISABLE_DEPRECATION_WARNINGS" + +%if 0%{?suse_version} > 1110 +export CFLAGS="$CFLAGS -fPIE" export LDFLAGS="-pie" +%endif + %configure \ --disable-silent-rules \ --enable-ipv6 \