diff --git a/.gitea/scripts/install-mingw.sh b/.gitea/scripts/install-mingw.sh index fc2de0f..852379d 100644 --- a/.gitea/scripts/install-mingw.sh +++ b/.gitea/scripts/install-mingw.sh @@ -11,6 +11,13 @@ url="https://github.com/AmanoTeam/mingw-gcc-cross/releases/download/${release}/$ prefix="${1:-/opt/mingw-gcc-cross}" compiler="${prefix}/bin/x86_64-w64-mingw32-ucrt-g++" +# cc1plus links against the GMP/MPFR/MPC/isl/zstd copies shipped in the +# toolchain, so the host loader needs the prefix on its search path. +export LD_LIBRARY_PATH="${prefix}/lib:${prefix}/lib64:${LD_LIBRARY_PATH:-}" +if [ -n "${GITHUB_ENV:-}" ]; then + echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> "${GITHUB_ENV}" +fi + self_check() { local probe probe="$(mktemp -d)"