mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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
|
||||
|
||||
@@ -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}")
|
||||
|
||||
|
||||
@@ -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}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user