From f0e0f3fc944e7cb20a7aaff32469ab1653f6e1ed Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 16 Mar 2012 17:40:31 +0000 Subject: [PATCH] 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 --- wscript | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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)