commit: 189fba8883ee9f3815336a4d4b60251b1e0fc4e3 Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> AuthorDate: Sun Jan 18 14:30:37 2026 +0000 Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> CommitDate: Sun Jan 18 17:08:33 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=189fba88
media-radio/wsjtx_improved: Apply FFLAG only if available Apply -ftrampoline-impl=heap only for newer compilers which are supporting the flag. Older compilers will place the trampolines still on the stack and thus generate a warning about executable stack. Closes: https://bugs.gentoo.org/968790 Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org> media-radio/wsjtx_improved/wsjtx_improved-3.0.0-r1.ebuild | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/media-radio/wsjtx_improved/wsjtx_improved-3.0.0-r1.ebuild b/media-radio/wsjtx_improved/wsjtx_improved-3.0.0-r1.ebuild index f76aca6634d7..6a368b73fe2e 100644 --- a/media-radio/wsjtx_improved/wsjtx_improved-3.0.0-r1.ebuild +++ b/media-radio/wsjtx_improved/wsjtx_improved-3.0.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -65,8 +65,9 @@ src_configure() { -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}" ) append-ldflags -no-pie - # fix executable stack from fortran nested functions - append-fflags -ftrampoline-impl=heap + # fix executable stack from fortran nested functions, placing them on the + # heap. Switch is only supported for newer GCC versions (bug #968790). + append-fflags $(test-flags-FC -ftrampoline-impl=heap) cmake_src_configure }
