From 552a79bc98192e678de69347298ccf76c0ee965e Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Tue, 27 Jun 2017 23:09:18 +0200 Subject: [PATCH] coverage.sh: Symlink libwinpthread-1.dll as well for Linux Mint --- expat/coverage.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/expat/coverage.sh b/expat/coverage.sh index 2c3b5ae5..4e4ff1e5 100755 --- a/expat/coverage.sh +++ b/expat/coverage.sh @@ -67,11 +67,21 @@ _copy_missing_mingw_libaries() { # * coverage GCC flags make them needed # * With WINEDLLPATH Wine looks for .dll.so in these folders, not .dll local target="$1" - local mingw_dll_dir="$(dirname "$(ls -1 /usr/lib*/gcc/i686-w64-mingw32/*/libgcc_s_sjlj-1.dll | head -n1)")" + local mingw_gcc_dll_dir="$(dirname "$(ls -1 /usr/lib*/gcc/i686-w64-mingw32/*/libgcc_s_sjlj-1.dll | head -n1)")" for dll in libgcc_s_sjlj-1.dll libstdc++-6.dll; do ( set -x - ln -s "${mingw_dll_dir}"/${dll} "${target}"/${dll} + ln -s "${mingw_gcc_dll_dir}"/${dll} "${target}"/${dll} + ) + done + + local mingw_pthread_dll_dir="$(dirname "$(ls -1 /usr/i686-w64-mingw32/lib*/libwinpthread-1.dll | head -n1)")" + for dll in libwinpthread-1.dll; do + source="${mingw_pthread_dll_dir}"/${dll} + [[ -e "${source}" ]] || continue + ( + set -x + ln -s "${source}" "${target}"/${dll} ) done }