sys-boot/syslinux: Filter LTO

Syslinux can only use LTO when using the ffat-lto-objects cflag and as this is a hack solution I recommend filtering which seems to be the only way to do it without.

Closes: https://bugs.gentoo.org/863722
Signed-off-by: Ian Jordan <immoloism@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/28318
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Ian Jordan
2022-11-18 03:15:53 +00:00
committed by Sam James
parent 52b73e69eb
commit 457a408fd4
3 changed files with 9 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
EAPI=7
inherit toolchain-funcs
inherit toolchain-funcs flag-o-matic
DESCRIPTION="SYSLINUX, PXELINUX, ISOLINUX, EXTLINUX and MEMDISK bootloaders"
HOMEPAGE="https://www.syslinux.org/"
@@ -104,6 +104,8 @@ _emake() {
}
src_compile() {
filter-lto #863722
# build system abuses the LDFLAGS variable to pass arguments to ld
unset LDFLAGS
if [[ ! -z ${loaderarch} ]]; then

View File

@@ -3,7 +3,7 @@
EAPI=8
inherit toolchain-funcs
inherit toolchain-funcs flag-o-matic
DESCRIPTION="SYSLINUX, PXELINUX, ISOLINUX, EXTLINUX and MEMDISK bootloaders"
HOMEPAGE="https://www.syslinux.org/"
@@ -50,6 +50,8 @@ src_prepare() {
default
}
src_compile() {
filter-lto #863722
local DATE=$(date -u -r NEWS +%Y%m%d)
local HEXDATE=$(printf '0x%08x' "${DATE}")

View File

@@ -3,7 +3,7 @@
EAPI=8
inherit toolchain-funcs
inherit toolchain-funcs flag-o-matic
DESCRIPTION="SYSLINUX, PXELINUX, ISOLINUX, EXTLINUX and MEMDISK bootloaders"
HOMEPAGE="https://www.syslinux.org/"
@@ -67,6 +67,8 @@ efimake() {
}
src_compile() {
filter-lto #863722
local DATE=$(date -u -r NEWS +%Y%m%d)
local HEXDATE=$(printf '0x%08x' "${DATE}")