blob: 1bdc5adbc150c48396599d1aaba0c090742709e3 [file] [log] [blame]
Andrew Geissler4b7c1152020-11-30 19:55:29 -06001From f8cb818ca96fc2a45a04448a51f25a277ec183db Mon Sep 17 00:00:00 2001
Brad Bishop0e2770c2020-01-21 07:31:46 -05002From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 15 Jan 2020 20:21:58 -0800
4Subject: [PATCH] example-clients: Use c++ compiler for jack_simdtests
5
6It uses c++ sources and runtime therefore its best to use c++ compiler
7to build it so it can find the correct runtime, cross compiling with
8clang fails
9
10x86_64-yoe-linux-ld: example-clients/simdtests.cpp.28.o: undefined reference to symbol '__cxa_call_unexpected@@CXXABI_1.3'
11
12Upstream-Status: Submitted [https://github.com/jackaudio/jack2/pull/536]
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
Andrew Geissler4b7c1152020-11-30 19:55:29 -060015 example-clients/wscript | 9 +++++++--
16 1 file changed, 7 insertions(+), 2 deletions(-)
Brad Bishop0e2770c2020-01-21 07:31:46 -050017
Brad Bishop0e2770c2020-01-21 07:31:46 -050018--- a/example-clients/wscript
19+++ b/example-clients/wscript
Andrew Geissler4b7c1152020-11-30 19:55:29 -060020@@ -49,10 +49,15 @@ def build(bld):
Brad Bishop0e2770c2020-01-21 07:31:46 -050021 else:
Andrew Geissler4b7c1152020-11-30 19:55:29 -060022 use = ['clientlib']
23
24+ if example_program == 'jack_simdtests':
25+ ftrs = 'cxx cxxprogram'
26+ else:
27+ ftrs = 'c cprogram'
28+
29 if bld.env['IS_MACOSX']:
30- prog = bld(features='c cprogram', framework = ['Foundation'])
31+ prog = bld(features = ftrs, framework = ['Foundation'])
32 else:
33- prog = bld(features='c cprogram')
34+ prog = bld(features = ftrs)
Brad Bishop0e2770c2020-01-21 07:31:46 -050035 prog.includes = os_incdir + ['../common/jack', '../common']
Andrew Geissler4b7c1152020-11-30 19:55:29 -060036 prog.source = example_program_source
37 prog.use = use