From: Jan Janssen Date: Wed, 29 Dec 2021 14:13:35 +0000 (+0100) Subject: meson: Get objcopy location from compiler X-Git-Tag: v251-rc1~615^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f2b07226751827303a88f3a301f2d834f3fb97b;p=thirdparty%2Fsystemd.git meson: Get objcopy location from compiler --- diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build index 912a1cdf3b6..9b21452e91d 100644 --- a/src/boot/efi/meson.build +++ b/src/boot/efi/meson.build @@ -43,7 +43,7 @@ if not cc.has_header_symbol('efi.h', 'EFI_IMAGE_MACHINE_X64', subdir_done() endif -objcopy = find_program('objcopy') +objcopy = run_command(cc.cmd_array(), '-print-prog-name=objcopy', check: true).stdout().strip() efi_ld = get_option('efi-ld') if efi_ld == 'auto'