diff options
author | Alexey Neyman <stilor@att.net> | 2018-12-11 08:55:07 -0800 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2018-12-11 08:55:07 -0800 |
commit | f2b64524b0a15dd7ee830db302199bb183566356 (patch) | |
tree | 9d75d3707ec335e088cfc5dc131b89691a6440e3 /scripts/build/internals.sh | |
parent | abee9bd48239468b49913ae73dcab5283bcb8810 (diff) | |
download | crosstool-ng-f2b64524b0a15dd7ee830db302199bb183566356.tar.gz crosstool-ng-f2b64524b0a15dd7ee830db302199bb183566356.tar.bz2 crosstool-ng-f2b64524b0a15dd7ee830db302199bb183566356.zip |
Add a symlink to LTO for binutils
... so that ar can find the plugin even when invoked directly, not
via the gcc-ar plugin.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/build/internals.sh')
-rw-r--r-- | scripts/build/internals.sh | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/scripts/build/internals.sh b/scripts/build/internals.sh index 3cd5eeb3..5d359979 100644 --- a/scripts/build/internals.sh +++ b/scripts/build/internals.sh @@ -70,20 +70,10 @@ do_finish() { "${CT_TARGET}/debug-root/usr/bin/gdbserver${exe_suffix}" fi if [ "${CT_CC_GCC}" = "y" ]; then - # TBD GCC 3.x/2.x is no longer supported by ctng # We can not use the version in CT_GCC_VERSION because # of the Linaro stuff. So, harvest the version string # directly from the gcc sources... - # All gcc 4.x seem to have the version in gcc/BASE-VER - # while version prior to 4.x have the version in gcc/version.c - # Of course, here is not the better place to do that... - if [ -f "${CT_SRC_DIR}/gcc/gcc/BASE-VER" ]; then - gcc_version=$( cat "${CT_SRC_DIR}/gcc/gcc/BASE-VER" ) - else - gcc_version=$(sed -r -e '/version_string/!d; s/^.+= "([^"]+)".*$/\1/;' \ - "${CT_SRC_DIR}/gcc/gcc/version.c" \ - ) - fi + gcc_version=$( cat "${CT_SRC_DIR}/gcc/gcc/BASE-VER" ) for _t in "bin/${CT_TARGET}-"* \ "${CT_TARGET}/bin/"* \ "libexec/gcc/${CT_TARGET}/${gcc_version}/"* \ |