2
0
Ismail Dönmez 2017-01-09 18:03:02 +00:00 committed by Git OBS Bridge
parent 18bd6d5101
commit 2ec72372c0
2 changed files with 18 additions and 0 deletions

16
memleak.patch Normal file
View File

@ -0,0 +1,16 @@
Index: winpthreads/src/thread.c
===================================================================
--- winpthreads.orig/src/thread.c
+++ winpthreads/src/thread.c
@@ -295,8 +295,10 @@ push_pthread_mem (_pthread_v *sv)
memset (sv, 0, sizeof(struct _pthread_v));
if (pthr_last == NULL)
pthr_root = pthr_last = sv;
- else
+ else {
pthr_last->next = sv;
+ pthr_last = sv;
+ }
pthread_mutex_unlock (&mtx_pthr_locked);
}

View File

@ -27,6 +27,7 @@ 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-rc1.tar.bz2
Source: mingw-w64-winpthreads-%version.tar.xz Source: mingw-w64-winpthreads-%version.tar.xz
Source9: %name-rpmlintrc Source9: %name-rpmlintrc
Patch1: memleak.patch
BuildRequires: mingw64-cross-gcc-bootstrap BuildRequires: mingw64-cross-gcc-bootstrap
BuildRequires: mingw64-cross-pkg-config BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem BuildRequires: mingw64-filesystem
@ -63,6 +64,7 @@ mingw-w64's implementation of POSIX threads for Windows.
%prep %prep
%setup -q -n winpthreads %setup -q -n winpthreads
%patch1 -p1
%build %build
# The build is trying to link with libpthread.a but it has no need # The build is trying to link with libpthread.a but it has no need