forked from pool/mingw64-winpthreads
- Update to version 5.0.3
- Drop gcc7.patch, fixed upstream. OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win64/mingw64-winpthreads?expand=0&rev=25
This commit is contained in:
parent
35543d1538
commit
e0ced203db
42
gcc7.patch
42
gcc7.patch
@ -1,42 +0,0 @@
|
||||
--- winpthreads/src/libgcc/dll_math.c 2013-04-10 20:11:34.000000000 +0200
|
||||
+++ winpthreads/src/libgcc/dll_math.c 2017-05-31 13:02:25.869883546 +0200
|
||||
@@ -120,6 +120,7 @@
|
||||
u_quad_t __udivdi3(u_quad_t a, u_quad_t b);
|
||||
u_quad_t __umoddi3(u_quad_t a, u_quad_t b);
|
||||
int __ucmpdi2(u_quad_t a, u_quad_t b);
|
||||
+quad_t __divmoddi4(quad_t a, quad_t b, quad_t *rem);
|
||||
|
||||
#endif /* !_LIBKERN_QUAD_H_ */
|
||||
|
||||
@@ -546,6 +547,31 @@
|
||||
(void)__qdivrem(a, b, &r);
|
||||
return (r);
|
||||
}
|
||||
+
|
||||
+/*
|
||||
+ * Divide two signed quads.
|
||||
+ * This function is new in GCC 7.
|
||||
+ */
|
||||
+quad_t
|
||||
+__divmoddi4(a, b, rem)
|
||||
+ quad_t a, b, *rem;
|
||||
+{
|
||||
+ u_quad_t ua, ub, uq, ur;
|
||||
+ int negq, negr;
|
||||
+
|
||||
+ if (a < 0)
|
||||
+ ua = -(u_quad_t)a, negq = 1, negr = 1;
|
||||
+ else
|
||||
+ ua = a, negq = 0, negr = 0;
|
||||
+ if (b < 0)
|
||||
+ ub = -(u_quad_t)b, negq ^= 1;
|
||||
+ else
|
||||
+ ub = b;
|
||||
+ uq = __qdivrem(ua, ub, &ur);
|
||||
+ if (rem)
|
||||
+ *rem = (negr ? -ur : ur);
|
||||
+ return (negq ? -uq : uq);
|
||||
+}
|
||||
#else
|
||||
static int __attribute__((unused)) dummy;
|
||||
#endif /*deined (_X86_) && !defined (__x86_64__)*/
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e4d736360c10e5e040aba74e68b6c396ab3baf8d426cb12a3fe503a36aef08bf
|
||||
size 374887
|
3
mingw-w64-winpthreads-5.0.3.tar.xz
Normal file
3
mingw-w64-winpthreads-5.0.3.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:47eb45d4861f0f56baa858710c86b9ddb162211b63a79daa188bda5723009f65
|
||||
size 315880
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 21 11:32:43 UTC 2017 - idonmez@suse.com
|
||||
|
||||
- Update to version 5.0.3
|
||||
- Drop gcc7.patch, fixed upstream.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 28 11:43:07 UTC 2017 - idonmez@suse.com
|
||||
|
||||
|
@ -17,17 +17,16 @@
|
||||
|
||||
|
||||
Name: mingw64-winpthreads
|
||||
Version: 5.0.2
|
||||
Version: 5.0.3
|
||||
Release: 0
|
||||
Summary: A pthreads implementation for Windows
|
||||
License: MIT and BSD-3-Clause
|
||||
Group: Development/Libraries/C and C++
|
||||
Url: http://mingw-w64.sf.net/
|
||||
|
||||
#DL-URL: http://downloads.sf.net/mingw-w64/mingw-w64-v5.0-rc1.tar.bz2
|
||||
#DL-URL: http://downloads.sf.net/mingw-w64/mingw-w64-v5.0.3.tar.bz2
|
||||
Source: mingw-w64-winpthreads-%version.tar.xz
|
||||
Source9: %name-rpmlintrc
|
||||
Patch0: gcc7.patch
|
||||
BuildRequires: mingw64-cross-gcc-bootstrap
|
||||
BuildRequires: mingw64-cross-pkg-config
|
||||
BuildRequires: mingw64-filesystem
|
||||
@ -64,7 +63,6 @@ mingw-w64's implementation of POSIX threads for Windows.
|
||||
|
||||
%prep
|
||||
%setup -q -n winpthreads
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
# The build is trying to link with libpthread.a but it has no need
|
||||
|
Loading…
Reference in New Issue
Block a user