summaryrefslogtreecommitdiffstats
path: root/toolchain/dependencies/dependencies.sh
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-05-22 00:52:22 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-05-22 00:56:14 +0200
commit6b8b829508a98667267b6a5ec8342ddd1f2b3377 (patch)
treebc111afc581644ef0aef6148c0637322d8fc1def /toolchain/dependencies/dependencies.sh
parent51861e1ba19a036625643a56382a175e8388529f (diff)
downloadbuildroot-novena-6b8b829508a98667267b6a5ec8342ddd1f2b3377.tar.gz
buildroot-novena-6b8b829508a98667267b6a5ec8342ddd1f2b3377.zip
dependencies: fix tests on LD_LIBRARY_PATH
Things like LD_LIBRARY_PATH=. or even LD_LIBRARY_PATH=.:/usr/lib were not detected as incorrect. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'toolchain/dependencies/dependencies.sh')
-rwxr-xr-xtoolchain/dependencies/dependencies.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/toolchain/dependencies/dependencies.sh b/toolchain/dependencies/dependencies.sh
index 923c76bcd..f5d9163cc 100755
--- a/toolchain/dependencies/dependencies.sh
+++ b/toolchain/dependencies/dependencies.sh
@@ -23,10 +23,10 @@ fi
# sanity check for CWD in LD_LIBRARY_PATH
# try not to rely on egrep..
if test -n "$LD_LIBRARY_PATH" ; then
- /bin/echo TRiGGER_start"$LD_LIBRARY_PATH"TRiGGER_end | /bin/grep ':.:' >/dev/null 2>&1 ||
- /bin/echo TRiGGER_start"$LD_LIBRARY_PATH"TRiGGER_end | /bin/grep 'TRiGGER_start:' >/dev/null 2>&1 ||
- /bin/echo TRiGGER_start"$LD_LIBRARY_PATH"TRiGGER_end | /bin/grep ':TRiGGER_end' >/dev/null 2>&1 ||
- /bin/echo TRiGGER_start"$LD_LIBRARY_PATH"TRiGGER_end | /bin/grep '::' >/dev/null 2>&1
+ /bin/echo TRiGGER_start"$LD_LIBRARY_PATH"TRiGGER_end | /bin/grep ':\.:' >/dev/null 2>&1 ||
+ /bin/echo TRiGGER_start"$LD_LIBRARY_PATH"TRiGGER_end | /bin/grep 'TRiGGER_start\.:' >/dev/null 2>&1 ||
+ /bin/echo TRiGGER_start"$LD_LIBRARY_PATH"TRiGGER_end | /bin/grep ':\.TRiGGER_end' >/dev/null 2>&1 ||
+ /bin/echo TRiGGER_start"$LD_LIBRARY_PATH"TRiGGER_end | /bin/grep 'TRiGGER_start\.TRiGGER_end' >/dev/null 2>&1
if test $? = 0; then
/bin/echo -e "\nYou seem to have the current working directory in your"
/bin/echo -e "LD_LIBRARY_PATH environment variable. This doesn't work.\n"