From: Matthias Clasen Date: Wed, 28 Jun 2023 11:12:07 +0000 (-0400) Subject: build: Look for ld.bfd X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~86^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f341bd563b1273888f65ffdabd582ac027883b30;p=gtk4.git build: Look for ld.bfd The objcopy+ld approach to fast resource building relies on behavior that is specific to the binutils linker, and does not work with the llvm one. Therefore, check for ld.bfd. We still fall back to trying with just ld, since I'm not 100% sure if binutils unconditionally installs ld.bfd. Fixes: #5672 --- diff --git a/meson.build b/meson.build index c0c605f5ce..19e0d96fba 100644 --- a/meson.build +++ b/meson.build @@ -746,7 +746,7 @@ if objcopy.found() objcopy_supports_add_symbol = run_command(objcopy, '--help', check: false).stdout().contains('--add-symbol') endif -ld = find_program('ld', required : false) +ld = find_program('ld.bfd', 'ld', required : false) if not meson.is_cross_build() and build_machine.cpu_family() == 'x86_64' and build_machine.system() == 'linux' and objcopy.found() and objcopy_supports_add_symbol and ld.found() can_use_objcopy_for_resources = true