summaryrefslogtreecommitdiff
path: root/make-distcheck.sh
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhsoting.net>2022-01-11 12:05:49 +0100
committerJörg Frings-Fürst <debian@jff-webhsoting.net>2022-01-11 12:05:49 +0100
commitfda4a6a8635254361196b0497803b7d01514203e (patch)
tree884dc2eb17cc521adade50e6368591958a39fff0 /make-distcheck.sh
parent3ce62696a97c7fbed49079f8909f46f7c567ff5a (diff)
parent6e919c028d200a9a8da0c338261a1a736ed2a88d (diff)
Merge branch 'release/debian/0.9.6+dfsg-1'debian/0.9.6+dfsg-1
Diffstat (limited to 'make-distcheck.sh')
-rwxr-xr-xmake-distcheck.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/make-distcheck.sh b/make-distcheck.sh
index 0918a08..2968dd0 100755
--- a/make-distcheck.sh
+++ b/make-distcheck.sh
@@ -72,6 +72,16 @@ check_tarball() (
cmake "${@:2}" ..
make
+
+ # NOTE: We need to copy some .dll files next to the
+ # Windows binaries so that they are ready to be executed
+ if [[ "${*:2}" == *mingw* ]]; then
+ cp /usr/lib/gcc/i686-w64-mingw32/*-posix/libgcc_s_sjlj-1.dll ./
+ cp /usr/lib/gcc/i686-w64-mingw32/*-posix/libstdc++-6.dll ./
+ cp /usr/i686-w64-mingw32/lib/libwinpthread-1.dll ./
+ cp "${GTEST_PREFIX:?}"/bin/libgtest.dll ./
+ fi
+
make test
make DESTDIR="${PWD}"/ROOT/ install
)