mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
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:
@@ -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)"
|
||||
|
||||
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user