VIDEO: Fix makefile for building on OS X with SDL (vs SDL2).

This commit is contained in:
Mark Pizzolato 2015-02-05 15:48:16 -08:00
parent 3b33804327
commit 0fd4a9f178

View file

@ -418,7 +418,7 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin)
VIDEO_FEATURES = - video capabilities provided by libSDL (Simple Directmedia Layer)
$(info using libSDL: $(call find_lib,SDL) $(call find_include,SDL/SDL))
ifeq (Darwin,$(OSTYPE))
VIDEO_LDFLAGS += -lobjc -framework cocoa
VIDEO_LDFLAGS += -lobjc -framework cocoa -DSDL_MAIN_AVAILABLE
endif
endif
endif