summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Janssen <medhefgo@web.de>2021-12-29 15:13:35 +0100
committerJan Janssen <medhefgo@web.de>2022-01-02 10:18:26 +0100
commit2f2b07226751827303a88f3a301f2d834f3fb97b (patch)
treea1425145a64578713466d559ab6585ce0e775a9f
parent52adf0e91ef00d21a2e83f7669d0823667ce6b6c (diff)
downloadsystemd-2f2b07226751827303a88f3a301f2d834f3fb97b.tar.gz
meson: Get objcopy location from compiler
-rw-r--r--src/boot/efi/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build
index 912a1cdf3b..9b21452e91 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'