Accepting request 729347 from devel:languages:misc

- Do not use LTO for clisp images

OBS-URL: https://build.opensuse.org/request/show/729347
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/clisp?expand=0&rev=49
This commit is contained in:
Dominique Leuenberger 2019-09-09 10:38:02 +00:00 committed by Git OBS Bridge
commit aac762f533
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Sep 9 07:50:29 UTC 2019 - Dr. Werner Fink <werner@suse.de>
- Do not use LTO for clisp images
-------------------------------------------------------------------
Mon Jun 25 13:47:37 UTC 2018 - werner@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package clisp
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -80,7 +80,10 @@ BuildRequires: pkgconfig(zlib)
# to BuildRequires
#
%define debug no
%define _lto_cflags %{nil}
%global rlver %(rpm -q --qf '%%{VERSION}' readline-devel | sed 's/\\.//g')
%define add_optflags(a:f:t:p:w:W:d:g:O:A:C:D:E:H:i:M:n:P:U:u:l:s:X:B:I:L:b:V:m:x:c:S:E:o:v:) \
%global optflags %{optflags} %{**}
Requires(pre): vim
Requires(pre): vim-data
Requires: ffcall
@ -136,6 +139,7 @@ contains two nice applications.
%patch16 -p1 -b .p16
%build
%add_optflags -g3 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE
#
# Overwrite stack size limit (hopefully a soft limit only)
#
@ -161,7 +165,7 @@ fi
%ifarch s390x
##RPM_OPT_FLAGS="$(echo %{optflags}|sed -r 's/-fstack-protector-strong ?//g;s/-f(stack-clash-protection)/-fno-\1/') -fno-stack-limit"
%endif
CC="${CC} -g ${RPM_OPT_FLAGS} -fno-strict-aliasing -fPIC -pipe"
CC="${CC} -g %{optflags} -fno-strict-aliasing -fPIC -pipe"
case "$(uname -m)" in
i[0-9]86)
CC="${CC} -ffloat-store" ;;