0001-example-clients-Use-c-compiler-for-jack_simdtests.patch 1.4 KB

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