From e2eb7d85874ebafab70cb5e85c17326b2eb91ec9 Mon Sep 17 00:00:00 2001 From: Chris Packham Date: Sun, 20 Feb 2022 21:46:21 +1300 Subject: binutils: Disable libdebuginfod when producing a static toolchain libdebuginfod is incompatible with static linking so pass --without-debuginfod when CT_STATIC_TOOLCHAIN is selected. Fixes #1683 Signed-off-by: Chris Packham diff --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh index 4a27e22..b16be90 100644 --- a/scripts/build/binutils/binutils.sh +++ b/scripts/build/binutils/binutils.sh @@ -171,6 +171,9 @@ do_binutils_backend() { extra_config+=("--disable-sim") extra_config+=("--disable-gdb") + # libdebuginfod in incompatible with static linking + [ "${CT_STATIC_TOOLCHAIN}" = "y" ] && extra_config+=("--without-debuginfod") + [ "${CT_TOOLCHAIN_ENABLE_NLS}" != "y" ] && extra_config+=("--disable-nls") # Disable usage of glob for higher compatibility. -- cgit v0.10.2-6-g49f6