[PATCH] Fix build issues on Debian 10

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Dec 17 07:10:40 UTC 2019


---
 trace/wscript | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/trace/wscript b/trace/wscript
index 7335c8f..187ee82 100644
--- a/trace/wscript
+++ b/trace/wscript
@@ -33,8 +33,15 @@ def options(opt):
 def configure(conf):
     conf.load('compiler_c')
     conf.load('compiler_cxx')
-    conf.check_cxx(lib = 'LLVM', mandatory=False)
-    conf.check(header_name='llvm/DebugInfo/Symbolize/Symbolize.h', features='cxx', mandatory=False)
+    try:
+        cppflags = conf.cmd_and_log(['llvm-config', '--cppflags'])
+        ldflags = conf.cmd_and_log(['llvm-config', '--ldflags'])
+        conf.env.append_value('CPPFLAGS', cppflags.split())
+        conf.env.append_value('LDFLAGS', ldflags.split())
+    except:
+        pass
+    if conf.check_cxx(lib = 'LLVM', mandatory=False):
+        conf.check(header_name='llvm/DebugInfo/Symbolize/Symbolize.h', features='cxx', mandatory=False)
     conf.check_cxx(lib = 'ws2_32', mandatory=False)
     conf.write_config_header('config.h')
 
-- 
2.16.4



More information about the devel mailing list