diff --git a/sys-boot/refind/refind-0.10.8.ebuild b/sys-boot/refind/refind-0.10.8.ebuild index 6c49cc43f2f..d5c47527c95 100644 --- a/sys-boot/refind/refind-0.10.8.ebuild +++ b/sys-boot/refind/refind-0.10.8.ebuild @@ -62,6 +62,9 @@ src_prepare() { sed -i -e 's/^\(include .*target.txt.*\)$/#\1/' \ -e 's@^\(TIANO_INCLUDE_DIRS\s*=\s*-I\s*\).*$@\1/usr/include/udk \\@' \ -e '/^\s*-I \$(EDK2BASE).*$/d' \ + -e '/^GNUEFILIB/s/lib/'$(get_libdir)'/' \ + -e '/^EFILIB/s/lib/'$(get_libdir)'/' \ + -e '/^EFICRT0/s/lib/'$(get_libdir)'/' \ "${f}" || die "Failed to patch Tianocore make file in" \ $(basename $(dirname ${f})) done