From 4125d71ce860e1d451e9351f3e23caa976895703 Mon Sep 17 00:00:00 2001 From: stephenli2000 Date: Tue, 28 Jun 2022 23:11:24 -0700 Subject: [PATCH] setupvars.sh: Removing extra semicolon, which breaks glibc build (#11849) This extra semicolon creates an output as example below. The extra '::' is equivalent to add '.' as part of the LD_LIBRARY_PATH. This breaks glibc build, and very often creates weird issue when launch commands from different path. ...inference_engine/external/tbb/lib::/opt/intel/openvino_2021/... We also noticed that :${parameter:+:$parameter} is widely used in this file. Please review the code and fix as needed. --- scripts/setupvars/setupvars.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setupvars/setupvars.sh b/scripts/setupvars/setupvars.sh index cb97ef1e07a..04b3de8b44b 100755 --- a/scripts/setupvars/setupvars.sh +++ b/scripts/setupvars/setupvars.sh @@ -51,7 +51,7 @@ if [ -e "$INSTALLDIR/runtime/3rdparty/tbb" ]; then if [[ "$OSTYPE" == "darwin"* ]]; then export DYLD_LIBRARY_PATH=$INSTALLDIR/runtime/3rdparty/tbb/lib:${DYLD_LIBRARY_PATH:+:$DYLD_LIBRARY_PATH} fi - export LD_LIBRARY_PATH=$INSTALLDIR/runtime/3rdparty/tbb/lib:${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} + export LD_LIBRARY_PATH=$INSTALLDIR/runtime/3rdparty/tbb/lib:${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH} export TBB_DIR=$INSTALLDIR/runtime/3rdparty/tbb/cmake fi