From cb4bb153c54ce431ec7f1b420ddb9ce32790d8cb Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Wed, 29 Mar 2006 11:05:05 +0000 Subject: [PATCH] Set LD_LIBRARY_PATH when running tests built with intel-linux. [SVN r33515] --- v2/tools/intel-linux.jam | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/v2/tools/intel-linux.jam b/v2/tools/intel-linux.jam index e33b601a2..ea1eec3ff 100644 --- a/v2/tools/intel-linux.jam +++ b/v2/tools/intel-linux.jam @@ -43,7 +43,24 @@ rule init ( version ? : command * : options * ) common.handle-options intel-linux : $(condition) : $(command) : $(options) ; gcc.init-link-flags intel-linux gnu $(condition) ; - + + local root = [ feature.get-values : $(options) ] ; + local bin ; + if $(command) + { + bin ?= [ common.get-absolute-tool-path $(command[-1]) ] ; + root ?= $(bin:D) ; + + if $(command) + { + local lib_path = $(root)/lib ; + if $(.debug-configuration) + { + ECHO notice: using intel libraries :: $(condition) :: $(lib_path) ; + } + flags intel-linux.link RUN_PATH $(condition) : $(lib_path) ; + } + } } SPACE = " " ;