Blame SOURCES/gnuefi-lib-dir-path.patch

7e5ecd
From 1e8912c79a70ec219ac8ca1af3ab20e42b735481 Mon Sep 17 00:00:00 2001
7e5ecd
From: Javier Martinez Canillas <javierm@redhat.com>
7e5ecd
Date: Tue, 13 Apr 2021 18:01:50 +0200
7e5ecd
Subject: [PATCH] uefi-capsule: Don't set gnu-efi lib dir path when using
7e5ecd
 custom crt0
7e5ecd
7e5ecd
The libefi.a and libgnuefi.a libraries are located in /usr/lib64 in RHEL8,
7e5ecd
not in /usr/lib/gnuefi/$gnu_efi_arch/ as is the case in Fedora. This leads
7e5ecd
to the linker not finding these libraries.
7e5ecd
7e5ecd
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
7e5ecd
---
7e5ecd
 plugins/uefi-capsule/efi/meson.build | 1 -
7e5ecd
 1 file changed, 1 deletion(-)
7e5ecd
7e5ecd
diff --git a/plugins/uefi-capsule/efi/meson.build b/plugins/uefi-capsule/efi/meson.build
7e5ecd
index 99654184a20..543474c0311 100644
7e5ecd
--- plugins/uefi-capsule/efi/meson.build
7e5ecd
+++ plugins/uefi-capsule/efi/meson.build
7e5ecd
@@ -80,7 +80,6 @@ if host_cpu == 'aarch64' or host_cpu == 'arm'
7e5ecd
     if cmd.returncode() != 0
7e5ecd
       warning('Cannot find SBAT section in @0@, using local copy'.format(join_paths(efi_crtdir, arch_crt_source)))
7e5ecd
       # The gnuefi libraries are still needed
7e5ecd
-      efi_libdir = efi_crtdir
7e5ecd
       efi_crtdir = join_paths(meson.current_build_dir(), 'crt0')
7e5ecd
     endif
7e5ecd
   endif
7e5ecd
-- 
7e5ecd
2.30.2