summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2024-01-18 16:50:08 -0500
committerIonen Wolkens <ionen@gentoo.org>2024-01-24 15:54:22 -0500
commitaec2451e54f828fc187aeee833d9fb64b0a8316a (patch)
treea679b8a2c5d5a9a9d85f06eba8b016a927b9d7f4 /x11-drivers
parentdev-python/sip: add 6.8.2 (diff)
downloadgentoo-aec2451e54f828fc187aeee833d9fb64b0a8316a.tar.gz
gentoo-aec2451e54f828fc187aeee833d9fb64b0a8316a.tar.bz2
gentoo-aec2451e54f828fc187aeee833d9fb64b0a8316a.zip
x11-drivers/nvidia-drivers: migrate checking for enabled lto, to tc-is-lto
This toolchain func was recently added, and is a lot more reliable than get-flagq, for example if the active flags contain `-flto -fno-lto` then tc-is-lto gets it correct. We would rather use this wherever possible. Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/34996 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'x11-drivers')
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-470.223.02.ebuild2
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-525.147.05.ebuild2
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-535.146.02.ebuild2
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-535.154.05.ebuild2
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-535.43.22.ebuild2
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-545.29.06-r1.ebuild2
6 files changed, 6 insertions, 6 deletions
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.223.02.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-470.223.02.ebuild
index b9fea77a5a73..36142dbc5a6d 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.223.02.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.223.02.ebuild
@@ -162,7 +162,7 @@ src_compile() {
local xnvflags=-fPIC #840389
# lto static libraries tend to cause problems without fat objects
- is-flagq '-flto@(|=*)' && xnvflags+=" $(test-flags-CC -ffat-lto-objects)"
+ tc-is-lto && xnvflags+=" $(test-flags-CC -ffat-lto-objects)"
NV_ARGS=(
PREFIX="${EPREFIX}"/usr
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-525.147.05.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-525.147.05.ebuild
index de4150d9cc5f..df13ac50f4b9 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-525.147.05.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-525.147.05.ebuild
@@ -179,7 +179,7 @@ src_compile() {
local xnvflags=-fPIC #840389
# lto static libraries tend to cause problems without fat objects
- is-flagq '-flto@(|=*)' && xnvflags+=" $(test-flags-CC -ffat-lto-objects)"
+ tc-is-lto && xnvflags+=" $(test-flags-CC -ffat-lto-objects)"
NV_ARGS=(
PREFIX="${EPREFIX}"/usr
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-535.146.02.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-535.146.02.ebuild
index af2df364068f..5b949b48cd04 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-535.146.02.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-535.146.02.ebuild
@@ -182,7 +182,7 @@ src_compile() {
local xnvflags=-fPIC #840389
# lto static libraries tend to cause problems without fat objects
- is-flagq '-flto@(|=*)' && xnvflags+=" $(test-flags-CC -ffat-lto-objects)"
+ tc-is-lto && xnvflags+=" $(test-flags-CC -ffat-lto-objects)"
NV_ARGS=(
PREFIX="${EPREFIX}"/usr
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-535.154.05.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-535.154.05.ebuild
index af2df364068f..5b949b48cd04 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-535.154.05.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-535.154.05.ebuild
@@ -182,7 +182,7 @@ src_compile() {
local xnvflags=-fPIC #840389
# lto static libraries tend to cause problems without fat objects
- is-flagq '-flto@(|=*)' && xnvflags+=" $(test-flags-CC -ffat-lto-objects)"
+ tc-is-lto && xnvflags+=" $(test-flags-CC -ffat-lto-objects)"
NV_ARGS=(
PREFIX="${EPREFIX}"/usr
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-535.43.22.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-535.43.22.ebuild
index 43b0b7b53c76..b13548c43466 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-535.43.22.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-535.43.22.ebuild
@@ -180,7 +180,7 @@ src_compile() {
local xnvflags=-fPIC #840389
# lto static libraries tend to cause problems without fat objects
- is-flagq '-flto@(|=*)' && xnvflags+=" $(test-flags-CC -ffat-lto-objects)"
+ tc-is-lto && xnvflags+=" $(test-flags-CC -ffat-lto-objects)"
NV_ARGS=(
PREFIX="${EPREFIX}"/usr
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-545.29.06-r1.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-545.29.06-r1.ebuild
index 4e57888236cf..511984ae0ecd 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-545.29.06-r1.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-545.29.06-r1.ebuild
@@ -171,7 +171,7 @@ src_compile() {
local xnvflags=-fPIC #840389
# lto static libraries tend to cause problems without fat objects
- is-flagq '-flto@(|=*)' && xnvflags+=" $(test-flags-CC -ffat-lto-objects)"
+ tc-is-lto && xnvflags+=" $(test-flags-CC -ffat-lto-objects)"
NV_ARGS=(
PREFIX="${EPREFIX}"/usr