shithub: aubio

Download patch

ref: a3de4be1017f4aabb8ad9843bcb3098cc8968921
parent: 4a1775782d71995a69c922abb053592d28115598
author: Paul Brossier <[email protected]>
date: Sun Mar 30 19:53:29 EDT 2014

wscript: make fat build optional

--- a/wscript
+++ b/wscript
@@ -72,6 +72,9 @@
     add_option_enable_disable(ctx, 'double', default = False,
             help_str = 'compile in double precision mode',
             help_disable_str = 'compile in single precision mode (default)')
+    add_option_enable_disable(ctx, 'fat', default = False,
+            help_str = 'build fat binaries (darwin only)',
+            help_disable_str = 'do not build fat binaries (default)')
 
     ctx.add_option('--with-target-platform', type='string',
             help='set target platform for cross-compilation', dest='target_platform')
@@ -102,7 +105,7 @@
         ctx.define('HAVE_WIN_HACKS', 1)
         ctx.env['cshlib_PATTERN'] = 'lib%s.dll'
 
-    if target_platform == 'darwin':
+    if target_platform == 'darwin' and ctx.options.enable_fat:
         ctx.env.CFLAGS += ['-arch', 'i386', '-arch', 'x86_64']
         ctx.env.LINKFLAGS += ['-arch', 'i386', '-arch', 'x86_64']