summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-03-16 17:40:31 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-03-16 17:40:31 +0000
commitf0e0f3fc944e7cb20a7aaff32469ab1653f6e1ed (patch)
tree0b739d574c0c862d97421bcc8f7a1ed4449eda22 /wscript
parent416e3c701e81027e7581a290ec0326529dc3d069 (diff)
hack for OS X builds where explicit linkage against libintl can be required but libintl has no .pc file and isn't part of the system libs
git-svn-id: svn://localhost/ardour2/branches/3.0@11711 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'wscript')
-rw-r--r--wscript11
1 files changed, 10 insertions, 1 deletions
diff --git a/wscript b/wscript
index ed06bcf4b7..fdbb281ed0 100644
--- a/wscript
+++ b/wscript
@@ -450,8 +450,17 @@ def configure(conf):
if sys.platform == 'darwin':
+ # libintl may or may not be trivially locatable
+ if not os.path.isfile ('/usr/include/libintl.h'):
+ # XXXX hack hack hack
+ prefinclude = ' '.join ('-I', os.path.expanduser ('~/gtk/inst/include'))
+ preflib = ' '.join ('-L', os.path.expanduser ('~/gtk/inst/lib'))
+ conf.env.append_value('CFLAGS', [ prefinclude ])
+ conf.env.append_value('CXXFLAGS', [prefinclude ])
+ conf.env.append_value('LINKFLAGS', [ preflib ])
+
# this is required, potentially, for anything we link and then relocate into a bundle
- conf.env.append_value('LINKFLAGS', [ '-Xlinker', '-headerpad', '-Xlinker', '2048'])
+ conf.env.append_value('LINKFLAGS', [ '-Xlinker', '-headerpad_max_install_names' ])
conf.define ('HAVE_COREAUDIO', 1)
conf.define ('AUDIOUNIT_SUPPORT', 1)