app-text/texlive-core: Update CXXFLAGS in 2024-r1

Update CXXFLAGS to include -std=c++17 if the compiler understands the
flag. This works around a bug in the configure scripts. The updating the
CXXFLAGS approach was chosen because it's significantly faster than
rebuilding the various configure scripts.

[sam: Add Bug tag.]

Bug: https://bugs.gentoo.org/966834
Signed-off-by: Nicholas Vinson <nvinson234@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44880
Closes: https://github.com/gentoo/gentoo/pull/44880
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Nicholas Vinson
2025-12-03 16:27:31 -05:00
committed by Sam James
parent 2e31ab0287
commit 9beefd404c

View File

@@ -255,6 +255,11 @@ src_configure() {
# thus open, but hey, at least it's not a regression...
append-cflags -Wno-incompatible-pointer-types
# bug #966834
# running reautoconf would also fix the issue; however, there are several
# configure scripts, so adding the flag is a much faster approach.
append-cxxflags $(test-flags-CXX -std=gnu++17)
# It fails on alpha without this
use alpha && append-ldflags "-Wl,--no-relax"