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
This commit is contained in:
Paul Davis 2012-03-16 17:40:31 +00:00
parent 416e3c701e
commit f0e0f3fc94
1 changed files with 10 additions and 1 deletions

11
wscript
View File

@ -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)