forked from pool/libtool
- add handle-Werror-return-type.patch
- disable lto, breaks libtool as seen in testsuite OBS-URL: https://build.opensuse.org/package/show/Base:System/libtool?expand=0&rev=90
This commit is contained in:
parent
76771fc807
commit
be282f3265
10
handle-Werror-return-type.patch
Normal file
10
handle-Werror-return-type.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- libtool-2.4.7/tests/resident.at
|
||||||
|
+++ libtool-2.4.7/tests/resident.at
|
||||||
|
@@ -117,6 +117,7 @@
|
||||||
|
setup_plugin (void)
|
||||||
|
{
|
||||||
|
atexit (bye);
|
||||||
|
+ return 0;
|
||||||
|
}
|
||||||
|
]])
|
||||||
|
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 29 13:46:49 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- add handle-Werror-return-type.patch
|
||||||
|
- disable lto, breaks libtool as seen in testsuite
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Mar 20 20:47:49 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
Sun Mar 20 20:47:49 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
15
libtool.spec
15
libtool.spec
@ -36,6 +36,8 @@ Source3: baselibs.conf
|
|||||||
Source4: libtool-rpmlintrc
|
Source4: libtool-rpmlintrc
|
||||||
# PATCH-FIX-OPENSUSE -- do not add build host name boo#1084909
|
# PATCH-FIX-OPENSUSE -- do not add build host name boo#1084909
|
||||||
Patch0: libtool-reproducible-hostname.patch
|
Patch0: libtool-reproducible-hostname.patch
|
||||||
|
# PATCH-FIX-OPENSUSE: workaround irrelevant compiler warning
|
||||||
|
Patch1: handle-Werror-return-type.patch
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: gcc-fortran
|
BuildRequires: gcc-fortran
|
||||||
@ -65,22 +67,19 @@ Group: Development/Libraries/C and C++
|
|||||||
Library needed by programs that use the ltdl interface of GNU libtool.
|
Library needed by programs that use the ltdl interface of GNU libtool.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n libtool-%{version}
|
%autosetup -p1 -n libtool-%{version}
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
%define _lto_cflags %{nil}
|
||||||
# FIXME: you should use the %%configure macro
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||||
./configure CFLAGS="%{optflags}" \
|
%configure
|
||||||
--prefix=%{_prefix} --infodir=%{_infodir} --libdir=%{_libdir}
|
|
||||||
# force rebuild with non-broken makeinfo
|
|
||||||
rm -f doc/libtool.info
|
rm -f doc/libtool.info
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%if "%{flavor}" == "testsuite"
|
%if "%{flavor}" == "testsuite"
|
||||||
%check
|
%check
|
||||||
trap 'test $? -ne 0 && cat tests/testsuite.log' EXIT
|
trap 'test $? -ne 0 && cat tests/testsuite.log' EXIT
|
||||||
%make_build check || :
|
%make_build check
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%else
|
%else
|
||||||
|
Loading…
Reference in New Issue
Block a user