diff options
author | Alexey Neyman <stilor@att.net> | 2017-02-12 18:53:23 -0800 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-02-13 22:47:40 -0800 |
commit | 7bcf18bfab84374d3305c7a088f95ac1219ddf93 (patch) | |
tree | 49c67ed5fb9729ef554c3a07a916612af5139e24 /scripts/build/binutils | |
parent | fbc69323085e2370faeb8b46291cd66cbf9ef649 (diff) | |
download | crosstool-ng-7bcf18bfab84374d3305c7a088f95ac1219ddf93.tar.gz crosstool-ng-7bcf18bfab84374d3305c7a088f95ac1219ddf93.tar.bz2 crosstool-ng-7bcf18bfab84374d3305c7a088f95ac1219ddf93.zip |
Determine whether -E/-r option selects extended regexp
... and then use the right option. See the note in scripts/functions
on where we should use ${foo} and where just 'foo'; this boils down to
whether we can expect the build tools override to be in effect (e.g. in
the actual build scripts) or not (i.e. outside of scripts/build).
While running in scripts/functions, or in scripts/crosstool-NG.sh the
build tools override directory (.build/tools/bin) may have not been
set up (yet, or at all).
Also, modify the installed scripts (populate, xldd) accordingly.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/build/binutils')
-rw-r--r-- | scripts/build/binutils/binutils.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh index 47fffa12..38c94613 100644 --- a/scripts/build/binutils/binutils.sh +++ b/scripts/build/binutils/binutils.sh @@ -257,7 +257,7 @@ do_binutils_backend() { CT_DoLog EXTRA "Installing ld wrapper" rm -f "${prefix}/bin/${CT_TARGET}-ld" rm -f "${prefix}/${CT_TARGET}/bin/ld" - sed -r -e "s/@@DEFAULT_LD@@/${CT_BINUTILS_LINKER_DEFAULT}/" \ + sed_r -e "s/@@DEFAULT_LD@@/${CT_BINUTILS_LINKER_DEFAULT}/" \ "${CT_LIB_DIR}/scripts/build/binutils/binutils-ld.in" \ >"${prefix}/bin/${CT_TARGET}-ld" chmod +x "${prefix}/bin/${CT_TARGET}-ld" |