Accepting request 731087 from devel:libraries:c_c++

- Add -ffat-lto-objects to avoid ppc64le build error (forwarded request 731073 from michel_mno)

OBS-URL: https://build.opensuse.org/request/show/731087
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/librtas?expand=0&rev=41
This commit is contained in:
Dominique Leuenberger 2019-09-30 13:47:40 +00:00 committed by Git OBS Bridge
commit 5da83020db
3 changed files with 12 additions and 6 deletions

View File

@ -1,7 +1,7 @@
# #
# spec file for package librtas-doc # spec file for package librtas-doc
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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/
# #
@ -25,7 +25,7 @@ BuildRequires: doxygen
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: libtool BuildRequires: libtool
Summary: Documents for librtas Summary: Documents for librtas
License: LGPL-2.1+ License: LGPL-2.1-or-later
Group: Documentation/Other Group: Documentation/Other
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: ppc ppc64 ppc64le ExclusiveArch: ppc ppc64 ppc64le

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Sep 15 10:13:00 UTC 2019 - Michel Normand <normand@linux.vnet.ibm.com>
- Add -ffat-lto-objects to avoid ppc64le build error
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jul 2 12:30:18 UTC 2018 - jloeser@suse.com Mon Jul 2 12:30:18 UTC 2018 - jloeser@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package librtas # spec file for package librtas
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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/
# #
@ -22,7 +22,7 @@ Name: librtas
Version: 2.0.2 Version: 2.0.2
Release: 0 Release: 0
Summary: Libraries to provide access to RTAS calls and RTAS events Summary: Libraries to provide access to RTAS calls and RTAS events
License: LGPL-2.1+ License: LGPL-2.1-or-later
Group: System/Libraries Group: System/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: ppc ppc64 ppc64le ExclusiveArch: ppc ppc64 ppc64le
@ -80,6 +80,7 @@ contents of RTAS events.
%patch0 -p1 %patch0 -p1
%build %build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
./autogen.sh ./autogen.sh
%configure %configure
make CFLAGS="%optflags -fPIC -g -I $PWD/librtasevent_src" LIB_DIR="%{_libdir}" %{?_smp_mflags} make CFLAGS="%optflags -fPIC -g -I $PWD/librtasevent_src" LIB_DIR="%{_libdir}" %{?_smp_mflags}