sdl: fix osx build issue

This commit is contained in:
punkrockguy318 2016-03-29 13:20:26 +00:00
parent 3a03e293e9
commit a1a204e66b
1 changed files with 2 additions and 0 deletions

View File

@ -64,6 +64,8 @@ if os.environ.has_key('LDFLAGS'):
env.Append(LINKFLAGS = os.environ['LDFLAGS'].split()) env.Append(LINKFLAGS = os.environ['LDFLAGS'].split())
if os.environ.has_key('PKG_CONFIG_PATH'): if os.environ.has_key('PKG_CONFIG_PATH'):
env['ENV']['PKG_CONFIG_PATH'] = os.environ['PKG_CONFIG_PATH'] env['ENV']['PKG_CONFIG_PATH'] = os.environ['PKG_CONFIG_PATH']
if not os.environ.has_key('PKG_CONFIG_PATH') and env['PLATFORM'] == 'darwin':
env['ENV']['PKG_CONFIG_PATH'] = "/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig"
if os.environ.has_key('PKG_CONFIG_LIBDIR'): if os.environ.has_key('PKG_CONFIG_LIBDIR'):
env['ENV']['PKG_CONFIG_LIBDIR'] = os.environ['PKG_CONFIG_LIBDIR'] env['ENV']['PKG_CONFIG_LIBDIR'] = os.environ['PKG_CONFIG_LIBDIR']