summaryrefslogtreecommitdiff
path: root/make-distcheck.sh
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhsoting.net>2022-01-09 19:04:04 +0100
committerJörg Frings-Fürst <debian@jff-webhsoting.net>2022-01-09 19:04:04 +0100
commit846d3dbadb663cfddc2b35dbfff836779a4b1b79 (patch)
tree1c109543808e40e553cfea44f1329bd410f743ff /make-distcheck.sh
parentd336d9867cfdbf1683653de369d67f5c7bea3f5e (diff)
parentf308d3149d855c4d6d0251cf6bce393dfa371329 (diff)
Merge branch 'feature/upstream' into develop
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
)