mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
sys-fs/diskdev_cmds: mark as LTO-unsafe, strict-aliasing unsafe
Closes: https://bugs.gentoo.org/863893 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
inherit flag-o-matic toolchain-funcs
|
||||
|
||||
MY_PV=${PV%_p*}
|
||||
|
||||
@@ -29,6 +29,15 @@ PATCHES=(
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
# -Werror=strict-alising
|
||||
# https://bugs.gentoo.org/863893
|
||||
# Upstream is entirely dead (since 2006!) and apple's opensource dump isn't
|
||||
# exactly where you go to report (0) bugs to an automated feed.
|
||||
#
|
||||
# Do not trust with LTO either.
|
||||
append-flags -fno-strict-aliasing
|
||||
filter-lto
|
||||
|
||||
emake -f Makefile.lnx AR="$(tc-getAR)" CC="$(tc-getCC)"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user