net-wireless/libxtrxll: mark as LTO-unsafe, strict-aliasing unsafe

Closes: https://bugs.gentoo.org/861932
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Eli Schwartz
2024-03-11 23:33:31 -04:00
committed by Sam James
parent 8b80f01f80
commit b4e704a3cb
2 changed files with 20 additions and 4 deletions

View File

@@ -1,9 +1,9 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake
inherit cmake flag-o-matic
DESCRIPTION="Low-level XTRX hardware abstraction library"
HOMEPAGE="https://github.com/xtrx-sdr/libxtrxll"
@@ -26,6 +26,14 @@ RDEPEND="usb3380? ( net-wireless/libusb3380 )"
DEPEND="${RDEPEND}"
src_configure() {
# -Werror=strict-aliasing
# https://bugs.gentoo.org/861932
# https://github.com/myriadrf/libxtrxll/issues/10
#
# Do not trust with LTO either
append-flags -fno-strict-aliasing
filter-lto
local mycmakeargs=(
-DENABLE_PCIE=ON
-DENABLE_USB3380="$(usex usb3380 ON OFF)"

View File

@@ -1,9 +1,9 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake
inherit cmake flag-o-matic
DESCRIPTION="Low-level XTRX hardware abstraction library"
HOMEPAGE="https://github.com/xtrx-sdr/libxtrxll"
@@ -26,6 +26,14 @@ RDEPEND="usb3380? ( net-wireless/libusb3380 )"
DEPEND="${RDEPEND}"
src_configure() {
# -Werror=strict-aliasing
# https://bugs.gentoo.org/861932
# https://github.com/myriadrf/libxtrxll/issues/10
#
# Do not trust with LTO either
append-flags -fno-strict-aliasing
filter-lto
local mycmakeargs=(
-DENABLE_PCIE=ON
-DENABLE_USB3380="$(usex usb3380 ON OFF)"