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

5
configure vendored
View File

@@ -25394,7 +25394,12 @@ $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
$as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
$as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
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