summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2024-03-11 23:33:31 -0400
committerSam James <sam@gentoo.org>2024-03-12 03:36:54 +0000
commitb4e704a3cb668ba1a6fc85ca9364bfde73db1e14 (patch)
tree87230508c0bb15042ba78bf8843fe3edff681746 /net-wireless/libxtrxll
parentdev-libs/dietlibc: filter LTO (diff)
downloadgentoo-b4e704a3cb668ba1a6fc85ca9364bfde73db1e14.tar.gz
gentoo-b4e704a3cb668ba1a6fc85ca9364bfde73db1e14.tar.bz2
gentoo-b4e704a3cb668ba1a6fc85ca9364bfde73db1e14.zip
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>
Diffstat (limited to 'net-wireless/libxtrxll')
-rw-r--r--net-wireless/libxtrxll/libxtrxll-0.0_p20201202.ebuild12
-rw-r--r--net-wireless/libxtrxll/libxtrxll-9999.ebuild12
2 files changed, 20 insertions, 4 deletions
diff --git a/net-wireless/libxtrxll/libxtrxll-0.0_p20201202.ebuild b/net-wireless/libxtrxll/libxtrxll-0.0_p20201202.ebuild
index 0bf53e74f27d..dbb429f7470d 100644
--- a/net-wireless/libxtrxll/libxtrxll-0.0_p20201202.ebuild
+++ b/net-wireless/libxtrxll/libxtrxll-0.0_p20201202.ebuild
@@ -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)"
diff --git a/net-wireless/libxtrxll/libxtrxll-9999.ebuild b/net-wireless/libxtrxll/libxtrxll-9999.ebuild
index 0bf53e74f27d..dbb429f7470d 100644
--- a/net-wireless/libxtrxll/libxtrxll-9999.ebuild
+++ b/net-wireless/libxtrxll/libxtrxll-9999.ebuild
@@ -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)"