From 3a8699ecabcef4c38ebb759c11a05d6f8a7a1f87e2904e2c8e9640384b3c0d9a Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Mon, 16 Jun 2014 13:56:03 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win64/mingw64-winpthreads?expand=0&rev=5 --- mingw64-winpthreads.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mingw64-winpthreads.spec b/mingw64-winpthreads.spec index 4cfcdf6..a0ae12a 100644 --- a/mingw64-winpthreads.spec +++ b/mingw64-winpthreads.spec @@ -58,6 +58,14 @@ mingw-w64's implementation of POSIX threads for Windows. %setup -q -n winpthreads %build +# There build is trying to link with libpthread.a but it has no need +# of any symbol from there, so just create a fake library and use it. +mkdir fakelib +pushd fakelib +touch empty.c +%{_mingw64_cc} -c empty.c +%{_mingw64_ar} rsc libpthread.a empty.o +popd %{_mingw64_configure} \ --disable-static \ --enable-shared