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 <judge.packham@gmail.com>
This commit is contained in:
Chris Packham 2022-02-20 21:46:21 +13:00
parent 4221618268
commit e2eb7d8587

View File

@ -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.