From 5d8dc09b12ea7d5576ef92e3e14a1db3654ff810 Mon Sep 17 00:00:00 2001 From: Parry Date: Mon, 1 Dec 2014 15:56:26 +0800 Subject: Fix build with non-framework SDL 2 issue on OS X * Don't hard coding SDL execution name. * Linking Cocoa's library. --- src/osd/sdl/sdl.mak | 4 ++-- 1 file 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 -- cgit v1.2.3