summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar R. Belmont <rb6502@users.noreply.github.com>2014-12-06 16:55:29 -0500
committerGravatarGravatar R. Belmont <rb6502@users.noreply.github.com>2014-12-06 16:55:29 -0500
commitb868138445a2deb4e580151aac28fd77c99f3c09 (patch) (github)
tree051fb7b4309d2e99648347f66a1064863af53245
parent0a02a83c06f3859639dfe6e9700699239b80f2b7 (diff)
parent5d8dc09b12ea7d5576ef92e3e14a1db3654ff810 (diff)
downloadmame-b868138445a2deb4e580151aac28fd77c99f3c09.tar.bz2
mame-b868138445a2deb4e580151aac28fd77c99f3c09.zip
Merge pull request #60 from mbcoguno/libsdl2-osx
SDL: Fix build with non-framework SDL 2 issue on OS X [mbcoguno]
-rw-r--r--src/osd/sdl/sdl.mak4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osd/sdl/sdl.mak b/src/osd/sdl/sdl.mak
index 21dd81472cc..c7aa5756ce8 100644
--- a/src/osd/sdl/sdl.mak
+++ b/src/osd/sdl/sdl.mak
@@ -506,10 +506,10 @@ else
# files (header files are #include "SDL/something.h", so the extra "/SDL"
# causes a significant problem)
-INCPATH += `sdl-config --cflags | sed 's:/SDL::'`
+INCPATH += `$(SDL_CONFIG) --cflags | sed 's:/SDL::'`
CCOMFLAGS += -DNO_SDL_GLEXT
# Remove libSDLmain, as its symbols conflict with SDLMain_tmpl.m
-LIBS += `sdl-config --libs | sed 's/-lSDLmain//'` -lpthread -framework OpenGL
+LIBS += `$(SDL_CONFIG) --libs | sed 's/-lSDLmain//'` -lpthread -framework Cocoa -framework OpenGL
DEFS += -DMACOSX_USE_LIBSDL
endif # MACOSX_USE_LIBSDL