ref: d6001bf69d49c896d2c95940e884b49cd4f6564b
parent: d81cae38636cdd6a7d5c7d797fb02c15b083adf8
author: Paul Brossier <piem@piem.org>
date: Sun Jul 15 11:09:59 EDT 2012
wscript: add option to build fat binary on mac
--- a/wscript
+++ b/wscript
@@ -68,6 +68,12 @@
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')