diff options
author | Bryan Hundven <bryanhundven@gmail.com> | 2015-11-17 02:48:09 -0800 |
---|---|---|
committer | Bryan Hundven <bryanhundven@gmail.com> | 2015-11-17 02:48:09 -0800 |
commit | 6f8e89cb5ca061e899bf3feaaf3fecf30d366c3e (patch) | |
tree | 9eb19260dd694fa6b4852c46e3f0a93939db9a24 /scripts/xldd.in | |
parent | 6ac8e31a519f41af7838bb5261e0fe989fb428bd (diff) | |
download | crosstool-ng-6f8e89cb5ca061e899bf3feaaf3fecf30d366c3e.tar.gz crosstool-ng-6f8e89cb5ca061e899bf3feaaf3fecf30d366c3e.tar.bz2 crosstool-ng-6f8e89cb5ca061e899bf3feaaf3fecf30d366c3e.zip |
consistency: Use exported variables of required tools
We check for apps:
* make
* sed
* grep
* awk
* libtool/libtoolize
* install
* patch
* and more
...during configure. Our scripts should be consistent about using the
variables that define where the found tool was found.
Of course, we do hard-link these tools in buildtools, but that should be
a backup for the components we are building. Our scripts should always
use the tools we find.
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Diffstat (limited to 'scripts/xldd.in')
-rw-r--r-- | scripts/xldd.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/xldd.in b/scripts/xldd.in index c906240e..0e8c0d07 100644 --- a/scripts/xldd.in +++ b/scripts/xldd.in @@ -158,8 +158,8 @@ fi sysroot="$( "${gcc}" -print-sysroot 2>/dev/null )" if [ -z "${sysroot}" ]; then - sysroot="$( "${gcc}" -print-file-name=libc.so 2>/dev/null \ - |sed -r -e 's:/usr/lib/libc.so$::;' \ + sysroot="$( "${gcc}" -print-file-name=libc.so 2>/dev/null \ + |${sed} -r -e 's:/usr/lib/libc.so$::;' \ )" fi if [ -z "${sysroot}" ]; then |