13
0

fix for OS X 10.6 math.h breakage

git-svn-id: svn://localhost/ardour2/branches/3.0@13597 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-12-04 20:18:50 +00:00
parent 89d1a2fdf5
commit 27fdf5f6e3

View File

@ -162,6 +162,14 @@ def set_compiler_flags (conf,opt):
else: else:
conf.env['build_target'] = opt.dist_target 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': if cpu == 'powerpc' and conf.env['build_target'] != 'none':
# #
# Apple/PowerPC optimization options # Apple/PowerPC optimization options