Skip to content

Commit

Permalink
[SDL2_gfx] Manually build the shared library for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano committed Jan 27, 2020
1 parent f26f750 commit 9bec597
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions S/SDL2_gfx/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ 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
rm *.o
fi
"""

# These are the platforms we will build for by default, unless further
Expand Down

0 comments on commit 9bec597

Please sign in to comment.