sdl: fix a build issue on OSX due to x11 being installed in a non-standard location on OSX (sf#578)

This commit is contained in:
punkrockguy318 2013-02-11 22:36:21 +00:00
parent 3d9095fc29
commit 1975f4c8b1
1 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,10 @@
# Fix compliation error about 'XKeysymToString' by linking X11 explicitly
# Thanks Antonio Ospite!
Import('env')
env.ParseConfig('pkg-config --cflags --libs x11')
config_string = 'pkg-config --cflags --libs x11'
if env['PLATFORM'] == 'darwin':
config_string = 'PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig/ ' + config_string
env.ParseConfig(config_string)
Export('env')
source_list = Split("""