Alter build flags on Mac to find dependent frameworks in /Library/Frameworks

This commit is contained in:
Michael Martin
2018-05-05 21:26:34 -07:00
parent 6428238e51
commit 29ed467363
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -55,11 +55,11 @@ SYSTEM_HOST_LDFLAGS=""
LIB_SDL_NAME="Simple DirectMedia Layer"
case "$HOST_SYSTEM" in
Darwin)
LIB_SDL_CFLAGS=''
LIB_SDL_LDFLAGS='-framework SDL -framework Cocoa -lobjc'
LIB_SDL_CFLAGS='-F/Library/Frameworks/ -framework SDL'
LIB_SDL_LDFLAGS='-F/Library/Frameworks/ -framework SDL -framework Cocoa -lobjc'
LIB_SDL_VERSION=$(echo \
"SDL_MAJOR_VERSION.SDL_MINOR_VERSION.SDL_PATCHLEVEL" | \
gcc -E -include SDL/SDL_version.h $LIB_SDL_CFLAGS - | \
gcc -E $SYSTEM_HOST_CFLAGS $LIB_SDL_CFLAGS -include SDL/SDL_version.h $LIB_SDL_LDFLAGS - | \
tail -1 | tr -d ' ')
;;
WINSCW|GCCE)
@@ -94,7 +94,7 @@ LIB_SDL_mixer_VERSION=""
LIB_SDL_image_NAME="SDL_image"
case "$HOST_SYSTEM" in
Darwin)
LIB_SDL_image_CFLAGS=''
LIB_SDL_image_CFLAGS='-framework SDL_image'
LIB_SDL_image_LDFLAGS="-framework SDL_image"
;;
ARMV5|WINSCW|GCCE)