From: Paul Brossier Date: Sun, 15 Jul 2012 21:09:59 +0000 (-0600) Subject: wscript: add option to build fat binary on mac X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d6001bf69d49c896d2c95940e884b49cd4f6564b;p=aubio.git wscript: add option to build fat binary on mac --- diff --git a/wscript b/wscript index 246c42e2..a00a5fc8 100644 --- a/wscript +++ b/wscript @@ -68,6 +68,12 @@ def configure(ctx): if Options.platform == 'win32': ctx.env['shlib_PATTERN'] = 'lib%s.dll' + if Options.platform == 'macfat': + ctx.env.CFLAGS += ['-arch', 'i386', '-arch', 'x86_64'] + ctx.env.LINKFLAGS += ['-arch', 'i386', '-arch', 'x86_64'] + ctx.env.CC = 'llvm-gcc-4.2' + ctx.env.LINK_CC = 'llvm-gcc-4.2' + # check for required headers ctx.check(header_name='stdlib.h') ctx.check(header_name='stdio.h')