SHA256
3
0
forked from pool/mpc

- Add mpc-1.3.0-gmpdep.patch to avoid dependence on stdio.h when

including mpc.h

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpc?expand=0&rev=47
This commit is contained in:
Richard Biener 2022-12-15 08:13:06 +00:00 committed by Git OBS Bridge
parent d24a706aa2
commit 5dca3b48ec
3 changed files with 26 additions and 0 deletions

18
mpc-1.3.0-gmpdep.patch Normal file
View File

@ -0,0 +1,18 @@
--- mpc-1.3.0/src/mpc.h.orig 2022-12-15 09:08:32.007095010 +0100
+++ mpc-1.3.0/src/mpc.h 2022-12-15 09:08:46.935285335 +0100
@@ -270,6 +270,7 @@
__MPC_DECLSPEC int mpc_inp_str (mpc_ptr, FILE *, size_t *, int, mpc_rnd_t);
__MPC_DECLSPEC size_t mpc_out_str (FILE *, int, size_t, mpc_srcptr, mpc_rnd_t);
__MPC_DECLSPEC void mpcb_out_str (FILE *f, mpcb_srcptr);
+__MPC_DECLSPEC void mpcr_out_str (FILE *f, mpcr_srcptr r);
#endif
__MPC_DECLSPEC int mpcr_inf_p (mpcr_srcptr r);
@@ -284,7 +285,6 @@
int64_t exp);
__MPC_DECLSPEC void mpcr_max (mpcr_ptr r, mpcr_srcptr s, mpcr_srcptr t);
__MPC_DECLSPEC int64_t mpcr_get_exp (mpcr_srcptr r);
-__MPC_DECLSPEC void mpcr_out_str (FILE *f, mpcr_srcptr r);
__MPC_DECLSPEC void mpcr_mul (mpcr_ptr r, mpcr_srcptr s, mpcr_srcptr t);
__MPC_DECLSPEC void mpcr_mul_2ui (mpcr_ptr r, mpcr_srcptr s,
unsigned long int e);

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Dec 15 08:09:45 UTC 2022 - Richard Biener <rguenther@suse.com>
- Add mpc-1.3.0-gmpdep.patch to avoid dependence on stdio.h when
including mpc.h
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Dec 14 09:25:18 UTC 2022 - Richard Biener <rguenther@suse.com> Wed Dec 14 09:25:18 UTC 2022 - Richard Biener <rguenther@suse.com>

View File

@ -27,6 +27,7 @@ Source0: https://ftp.gnu.org/gnu/mpc/mpc-%{version}.tar.gz
Source1: https://ftp.gnu.org/gnu/mpc/mpc-%{version}.tar.gz.sig Source1: https://ftp.gnu.org/gnu/mpc/mpc-%{version}.tar.gz.sig
Source2: %{name}.keyring Source2: %{name}.keyring
Source3: baselibs.conf Source3: baselibs.conf
Patch: mpc-1.3.0-gmpdep.patch
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: pkgconfig(gmp) >= 5.0.0 BuildRequires: pkgconfig(gmp) >= 5.0.0
BuildRequires: pkgconfig(mpfr) >= 4.1.0 BuildRequires: pkgconfig(mpfr) >= 4.1.0
@ -59,6 +60,7 @@ MPC multiple-precision complex library development files.
%prep %prep
%setup -q %setup -q
%patch -p1
%build %build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects %global _lto_cflags %{_lto_cflags} -ffat-lto-objects