If --with-efi-ldsdir is not passed, systemd guesses: [AS_FOR([DIR], [EFI_LDS_DIR], ["${efiroot}/gnuefi" "${efiroot}"], [AC_CHECK_FILE([${EFI_LDS_DIR}/elf_${EFI_ARCH}_efi.lds], [have_efi_lds=yes && break])])]) However, since just before I have overrode $efiroot with --with-efi-libdir, it would seem reasonable to try that one ($EFI_LIB_DIR) instead.
Hmm, I have trouble parsing the text. Please explain what you are looking for, or just propose a patch.
I'm thinking the following may be better: [AS_FOR([DIR], [EFI_LDS_DIR], ["${EFI_LIB_DIR}/gnuefi" "${EFI_LIB_DIR}"], [AC_CHECK_FILE([${EFI_LDS_DIR}/elf_${EFI_ARCH}_efi.lds], [have_efi_lds=yes && break])])]) i.e. $EFI_LIB_DIR (--with-efi-libdir=) instead of $efiroot (default path).
Seems to work fine here. Applied. Thanks!
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.