- Unbreak Leap 42.3 compilation

OBS-URL: https://build.opensuse.org/package/show/shells/zsh?expand=0&rev=202
This commit is contained in:
Ismail Dönmez 2018-09-21 09:29:49 +00:00 committed by Git OBS Bridge
parent 9216e0d466
commit 32d5305ae7
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Sep 21 09:29:03 UTC 2018 - Ismail Dönmez <idonmez@suse.com>
- Unbreak Leap 42.3 compilation
-------------------------------------------------------------------
Sun Sep 16 20:13:34 UTC 2018 - Karol Babioch <kbabioch@suse.com>

View File

@ -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 \