shithub: aubio

Download patch

ref: fc5e189ce9e7f0e1e1f585a67c73fddc293c6e9a
parent: 9452505a636bc184c1a010dfcf0fc3aa4c432ce3
author: Martin Hermant <martin.hermant@gmail.com>
date: Mon May 29 06:28:00 EDT 2017

wscript : add spacing after -o flag (else not processed by emmc)

--- a/wscript
+++ b/wscript
@@ -107,6 +107,18 @@
     ctx.load('waf_unit_test')
     ctx.load('gnu_dirs')
 
+    target_platform = sys.platform
+    if ctx.options.target_platform:
+        target_platform = ctx.options.target_platform
+
+
+    if target_platform=='emscripten':
+        # need to force spaces between flag -o and path 
+        # inspired from :
+        # https://github.com/waf-project/waf/blob/master/waflib/extras/c_emscripten.py (#1885)
+        # (OSX /emscripten 1.37.9)
+        ctx.env.CC_TGT_F            = ['-c', '-o', '']
+        ctx.env.CCLNK_TGT_F         = ['-o', '']
     # check for common headers
     ctx.check(header_name='stdlib.h')
     ctx.check(header_name='stdio.h')
@@ -117,9 +129,6 @@
     ctx.check(header_name='getopt.h', mandatory = False)
     ctx.check(header_name='unistd.h', mandatory = False)
 
-    target_platform = sys.platform
-    if ctx.options.target_platform:
-        target_platform = ctx.options.target_platform
     ctx.env['DEST_OS'] = target_platform
 
     if ctx.options.build_type == "debug":