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

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