]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: Get objcopy location from compiler 21928/head
authorJan Janssen <medhefgo@web.de>
Wed, 29 Dec 2021 14:13:35 +0000 (15:13 +0100)
committerJan Janssen <medhefgo@web.de>
Sun, 2 Jan 2022 09:18:26 +0000 (10:18 +0100)
src/boot/efi/meson.build

index 912a1cdf3b635ab4196f30e38b3ce613401406e4..9b21452e91d30350308677c9bc802f978a79d290 100644 (file)
@@ -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'