commit: 5bb1147e3cd021653250f8e1855c849683cbea5f Author: Violet Purcell <vimproved <AT> inventati <DOT> org> AuthorDate: Fri Sep 22 00:30:39 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Sep 22 15:42:48 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bb1147e
media-plugins/calf: Explicitly add -fno-fast-math when using compiler-rt Signed-off-by: Violet Purcell <vimproved <AT> inventati.org> Closes: https://github.com/gentoo/gentoo/pull/32980 Signed-off-by: Sam James <sam <AT> gentoo.org> media-plugins/calf/calf-0.90.3-r2.ebuild | 10 ++++++++-- media-plugins/calf/calf-9999.ebuild | 8 +++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/media-plugins/calf/calf-0.90.3-r2.ebuild b/media-plugins/calf/calf-0.90.3-r2.ebuild index 854f4789523c..b45728ecbb78 100644 --- a/media-plugins/calf/calf-0.90.3-r2.ebuild +++ b/media-plugins/calf/calf-0.90.3-r2.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit autotools xdg +inherit autotools flag-o-matic toolchain-funcs xdg DESCRIPTION="A set of open source instruments and effects for digital audio workstations" HOMEPAGE="https://calf-studio-gear.org/" @@ -56,7 +56,13 @@ src_prepare() { eautoreconf } -src_configure() { +src_configure() { + # Upstream append -ffast-math by default, however since libtool links C++ + # shared libs with -nostdlib, this causes symbol resolution error for + # __powidn2 when using compiler-rt. Disable fast math on compiler-rt until + # a better fix is found. + [[ $(tc-get-c-rtlib) = "compiler-rt" ]] && append-cxxflags "-fno-fast-math" + local myeconfargs=( --prefix="${EPREFIX}"/usr --without-obsolete-check diff --git a/media-plugins/calf/calf-9999.ebuild b/media-plugins/calf/calf-9999.ebuild index f232db75e494..c83f53e73167 100644 --- a/media-plugins/calf/calf-9999.ebuild +++ b/media-plugins/calf/calf-9999.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit autotools xdg +inherit autotools flag-o-matic toolchain-funcs xdg DESCRIPTION="A set of open source instruments and effects for digital audio workstations" HOMEPAGE="https://calf-studio-gear.org/" @@ -56,6 +56,12 @@ src_prepare() { } src_configure() { + # Upstream append -ffast-math by default, however since libtool links C++ + # shared libs with -nostdlib, this causes symbol resolution error for + # __powidn2 when using compiler-rt. Disable fast math on compiler-rt until + # a better fix is found. + [[ $(tc-get-c-rtlib) = "compiler-rt" ]] && append-cxxflags "-fno-fast-math" + local myeconfargs=( --prefix="${EPREFIX}"/usr --without-obsolete-check
