From 27fdf5f6e3e5f5093e11fe3b615815c3dbbfdfff Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 4 Dec 2012 20:18:50 +0000 Subject: [PATCH] fix for OS X 10.6 math.h breakage git-svn-id: svn://localhost/ardour2/branches/3.0@13597 d708f5d6-7413-0410-9779-e7cbd77b26cf --- wscript | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wscript b/wscript index c27c433e04..8a4912d47b 100644 --- a/wscript +++ b/wscript @@ -162,6 +162,14 @@ def set_compiler_flags (conf,opt): else: conf.env['build_target'] = opt.dist_target + if conf.env['build_target'] = 'snowleopard': + # + # stupid OS X 10.6 has a bug in math.h that prevents llrint and friends + # from being visible. + # + debug_flags.append ('-U__STRICT_ANSI__') + optimization_flags.append ('-U__STRICT_ANSI__') + if cpu == 'powerpc' and conf.env['build_target'] != 'none': # # Apple/PowerPC optimization options