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 }