summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/darwin.config13
1 files changed, 11 insertions, 2 deletions
diff --git a/config/darwin.config b/config/darwin.config
index 4fadce1..3e785f6 100644
--- a/config/darwin.config
+++ b/config/darwin.config
@@ -82,6 +82,15 @@ if target_arch == Architecture.PPC:
os.environ['CCASFLAGS'] += ' -arch ppc'
os.environ['OBJCFLAGS'] += ' -arch ppc'
-os.environ['CFLAGS'] += ' -I%s -I%s' % (os.path.join(prefix, 'include'), os.path.join(sdk_root, 'usr', 'X11', 'include'))
+incl_dir = os.path.join(prefix, 'include')
+if not os.path.exists(incl_dir):
+ os.makedirs(incl_dir)
+os.environ['CFLAGS'] += ' -I%s %s ' % (incl_dir, sdk)
os.environ['CXXFLAGS'] += os.environ['CFLAGS']
-os.environ['LDFLAGS'] += ' %s -L%s ' % (sdk, os.path.join(sdk_root, 'usr', 'X11', 'lib'))
+os.environ['LDFLAGS'] += ' %s ' % sdk
+
+# Link GL headers
+gl_headers = os.path.join(sdk_root, 'usr', 'X11', 'include', 'GL')
+gl_headers_prefix = os.path.join(incl_dir, 'GL')
+if not os.path.exists(gl_headers_prefix):
+ os.symlink(gl_headers, gl_headers_prefix)