diff --git a/zsh.changes b/zsh.changes index 4da2f42..ea946b8 100644 --- a/zsh.changes +++ b/zsh.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Sep 21 09:29:03 UTC 2018 - Ismail Dönmez + +- Unbreak Leap 42.3 compilation + ------------------------------------------------------------------- Sun Sep 16 20:13:34 UTC 2018 - Karol Babioch diff --git a/zsh.spec b/zsh.spec index 7312c6b..86b5b98 100644 --- a/zsh.spec +++ b/zsh.spec @@ -108,10 +108,15 @@ perl -p -i -e 's|%{_prefix}/local/bin|%{_bindir}|' \ %build +%define _stack_protector "-fstack-protector-strong" +%if 0%{?suse_version} <= 1315 +%define _stack_protector "-fstack-protector" +%endif + %configure \ %if 0%{?suse_version} --with-term-lib="ncursesw" \ - --enable-cflags="%{optflags} -fPIE -fstack-protector-strong %(ncursesw6-config --cflags)" \ + --enable-cflags="%{optflags} -fPIE %{_stack_protector} %(ncursesw6-config --cflags)" \ --enable-ldflags="%(ncursesw6-config --libs) -pie -Wl,-z,relro" \ %endif --enable-fndir=%{_datadir}/%{name}/${version}/functions \