The modifications to LD_LIBRARY_PATH now add the specified paths to the

beginning of LD_LIBRARY_PATH as opposed to simply replacing it.
This allows users to use LD_LIBRARY_PATH when running tests (useful for
when they have installed their own version of GCC).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6800 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
John Criswell 2003-06-20 16:14:49 +00:00
parent 5b836c4a06
commit 259a144ef5
2 changed files with 23 additions and 2 deletions

View File

@ -4,7 +4,17 @@
rm -f test.bc.temp[12]
LD_LIBRARY_PATH=$3
#
# Split the current LD_LIBRARY_PATH into two separate components.
#
FirstLDP=`echo $LD_LIBRARY_PATH | cut -d\; -f1`
SecondLDP=`echo $LD_LIBRARY_PATH | cut -d\; -f2`
#
# Now create a new LD_LIBRARY_PATH with our command line options as
# the first section.
#
LD_LIBRARY_PATH="$3:${FirstLDP}\;${SecondLDP}"
export LD_LIBRARY_PATH
AS=$2/as

View File

@ -1,5 +1,16 @@
#!/bin/sh
LD_LIBRARY_PATH=$3
#
# Split the current LD_LIBRARY_PATH into two separate components.
#
FirstLDP=`echo $LD_LIBRARY_PATH | cut -d\; -f1`
SecondLDP=`echo $LD_LIBRARY_PATH | cut -d\; -f2`
#
# Now create a new LD_LIBRARY_PATH with our command line options as
# the first section.
#
LD_LIBRARY_PATH="$3:${FirstLDP}\;${SecondLDP}"
export LD_LIBRARY_PATH
AS=$2/as