Dominique Leuenberger 2020-03-11 17:45:53 +00:00 committed by Git OBS Bridge
commit 1474cd0c2c
2 changed files with 6 additions and 6 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Mar 10 08:38:10 UTC 2020 - Martin Liška <mliska@suse.cz>
- Remove stack-protector option addition, it's already in $optflags.
-------------------------------------------------------------------
Mon Feb 17 05:18:47 UTC 2020 - Ismail Dönmez <idonmez@suse.com>

View File

@ -108,15 +108,10 @@ 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 %{_stack_protector} %(ncursesw6-config --cflags)" \
--enable-cflags="%{optflags} -fPIE %(ncursesw6-config --cflags)" \
--enable-ldflags="%(ncursesw6-config --libs) -pie -Wl,-z,relro" \
%endif
--enable-fndir=%{_datadir}/%{name}/${version}/functions \