Fixed building on Mac OS X on the command line and with an older macOS SDK

This commit is contained in:
Sam Lantinga
2020-11-21 14:13:26 -08:00
parent 1df593fb16
commit fd89446782
9 changed files with 104 additions and 86 deletions

View File

@@ -4053,7 +4053,10 @@ AS_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau
# Set up files for the joystick library
if test x$enable_joystick = xyes; then
AC_DEFINE(SDL_JOYSTICK_IOKIT, 1, [ ])
AC_DEFINE(SDL_JOYSTICK_MFI, 1, [ ])
SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
have_joystick=yes
fi
# Set up files for the haptic library