SDL2 build issues on Mac OS X appear to be related to Brew include paths coming before our own internal SDL2 library, causing confusion

This commit is contained in:
Jonathan Campbell
2022-10-02 16:39:45 -07:00
parent 1396355fe8
commit ab8f4a21dc
2 changed files with 12 additions and 0 deletions

View File

@@ -15,6 +15,12 @@ chmod +x vs/sdl/build-scripts/strip_fPIC.sh
# prefer to compile against our own copy of SDL 1.x
echo Compiling our internal SDL 1.x
(cd vs/sdl && ./build-dosbox.sh) || exit 1
new="-I$top/vs/sdl/linux-host/include "
nld="-L$top/vs/sdl/linux-host/lib "
export CFLAGS="$new$CFLAGS"
export LDFLAGS="$nld$LDFLAGS"
export CPPFLAGS="$new$CPPFLAGS"
export CXXFLAGS="$new$CXXFLAGS"
# FIXME: SDLnet will compile a static library that targets a foreign architecture,
# and then ld will complain about it????????