From f0b8636ccc8a061a7a3e1468d2d84d30a856a759 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sun, 28 Jul 2019 22:32:00 +0200 Subject: [PATCH] qa.sh: Add missing DLL symlinks for MinGW --- expat/qa.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/expat/qa.sh b/expat/qa.sh index 73a40ac1..d74ebc35 100755 --- a/expat/qa.sh +++ b/expat/qa.sh @@ -108,6 +108,18 @@ run_tests() { egypt) return 0 ;; esac + if [[ ${CC} =~ mingw ]]; then + # NOTE: Filenames are hardcoded for Travis Ubuntu trusty, as of now + for i in tests xmlwf xmlwf/.libs ; do + RUN ln -s \ + /usr/i686-w64-mingw32/lib/libwinpthread-1.dll \ + /usr/lib/gcc/i686-w64-mingw32/4.8/libgcc_s_sjlj-1.dll \ + /usr/lib/gcc/i686-w64-mingw32/4.8/libstdc++-6.dll \ + ../lib/.libs/libexpat-1.dll \ + ${i}/ + done + fi + RUN "${MAKE}" \ CFLAGS="${CFLAGS} -Werror" \ CXXFLAGS="${CXXFLAGS} -Werror" \