From f2b64524b0a15dd7ee830db302199bb183566356 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Tue, 11 Dec 2018 08:55:07 -0800 Subject: 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 --- scripts/build/binutils/binutils.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts/build/binutils/binutils.sh') diff --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh index d1745a34..4d1bf46c 100644 --- a/scripts/build/binutils/binutils.sh +++ b/scripts/build/binutils/binutils.sh @@ -208,6 +208,12 @@ do_binutils_backend() { CT_DoLog EXTRA "Installing binutils" CT_DoExecLog ALL make install + if [ "${CT_BINUTILS_PLUGINS}" = "y" ]; then + # Create a directory for plugins such as LTO (to be installed by + # their providers later) + CT_DoExecLog ALL mkdir -p "${CT_PREFIX_DIR}/lib/bfd-plugins" + fi + if [ "${build_manuals}" = "y" ]; then CT_DoLog EXTRA "Building and installing the binutils manuals" manuals_for=( gas binutils ld gprof ) -- cgit v1.2.3