don't run sdl-config when cross compiling for mac

I guess it should only be run when compiling for linux or cross compiling for windows
This commit is contained in:
jacob1 2016-01-24 15:54:43 -05:00
parent 82dc5e1f71
commit 82257e5e39

View File

@ -239,7 +239,7 @@ def findLibs(env, conf):
FatalError("SDL framework not found or not installed")
else:
FatalError("SDL development library not found or not installed")
if platform == "Linux" or compilePlatform == "Linux":
if platform == "Linux" or (compilePlatform == "Linux" and platform != "Darwin"):
try:
env.ParseConfig('sdl-config --cflags')
env.ParseConfig('sdl-config --libs')