From 8aaffb7031f7f6398467859107a8dab5f382875a Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sun, 26 Nov 2017 12:12:51 -0800 Subject: [PATCH] Set rpath if not --use_system_clang --- wscript | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wscript b/wscript index 70f63c79..6c1fe73b 100644 --- a/wscript +++ b/wscript @@ -95,6 +95,7 @@ def configure(conf): conf.check(header_name='stdio.h', features='cxx cxxprogram', mandatory=True) conf.load('clang_compilation_database', tooldir='.') + conf.env['use_system_clang'] = conf.options.use_system_clang if conf.options.use_system_clang: # Ask llvm-config for cflags and ldflags conf.find_program(conf.options.llvm_config, msg='checking for llvm-config', var='LLVM_CONFIG', mandatory=False) @@ -184,6 +185,7 @@ def build(bld): 'third_party/sparsepp/'], defines=['LOGURU_WITH_STREAMS=1'], lib=lib, + rpath=[] if bld.env['use_system_clang'] else bld.env['LIBPATH_clang'], target='app') #bld.shlib(source='a.cpp', target='mylib', vnum='9.8.7')