From 1e4f251f2fdf82916410fcaf386db5563477f19e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Mon, 27 Jan 2020 01:27:18 +0000 Subject: [PATCH] [SDL2_gfx] Manually build the shared library for Windows --- S/SDL2_gfx/build_tarballs.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/S/SDL2_gfx/build_tarballs.jl b/S/SDL2_gfx/build_tarballs.jl index de35893feaf..ff2151c6cd8 100644 --- a/S/SDL2_gfx/build_tarballs.jl +++ b/S/SDL2_gfx/build_tarballs.jl @@ -30,6 +30,12 @@ update_configure_scripts ./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target} "${FLAGS[@]}" make -j${nproc} make install +if [[ "${target}" == *-mingw* ]]; then + # The shared library is not built for Windows, let's do it ourselves + cd "${prefix}/lib" + ar x libSDL2_gfx.a + cc -shared -o "${libdir}/SDL2_gfx.${dlext}" *.o -lSDL2 +fi """ # These are the platforms we will build for by default, unless further