From d6001bf69d49c896d2c95940e884b49cd4f6564b Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 15 Jul 2012 15:09:59 -0600 Subject: [PATCH] wscript: add option to build fat binary on mac --- wscript | 6 ++++++ 1 file changed, 6 insertions(+) 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') -- 2.26.2