media-libs/noise-suppression-for-voice: Fix build with Clang

Closes: https://bugs.gentoo.org/925672
Signed-off-by: Kacper Słomiński <kacper.slominski72@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/35957
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Kacper Słomiński
2024-03-28 04:50:11 +01:00
committed by Sam James
parent f9151322f5
commit 5bdff1dfb5
2 changed files with 20 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
EAPI=8
inherit cmake
inherit cmake flag-o-matic
DESCRIPTION="A real-time noise suppression plugin for voice"
HOMEPAGE="https://github.com/werman/noise-suppression-for-voice"
@@ -44,6 +44,15 @@ DEPEND="
RDEPEND="${DEPEND}"
src_configure() {
# Bug #925672
# append-atomic-flags does not work for us in this case, as it can
# only test for single integers of given sizes, meanwhile
# noise-suppression-for-voice does std::atomic<RnNoiseStats>, where
# RnNoiseStats is a struct with 4 uint32_t members.
if test-flags-CCLD "-latomic" &>/dev/null; then
append-flags -Wl,--push-state,--as-needed,-latomic,--pop-state
fi
local mycmakeargs=(
-DBUILD_LADSPA_PLUGIN=$(usex ladspa ON OFF)
-DBUILD_LV2_PLUGIN=$(usex lv2 ON OFF)

View File

@@ -3,7 +3,7 @@
EAPI=8
inherit cmake
inherit cmake flag-o-matic
DESCRIPTION="A real-time noise suppression plugin for voice"
HOMEPAGE="https://github.com/werman/noise-suppression-for-voice"
@@ -44,6 +44,15 @@ DEPEND="
RDEPEND="${DEPEND}"
src_configure() {
# Bug #925672
# append-atomic-flags does not work for us in this case, as it can
# only test for single integers of given sizes, meanwhile
# noise-suppression-for-voice does std::atomic<RnNoiseStats>, where
# RnNoiseStats is a struct with 4 uint32_t members.
if test-flags-CCLD "-latomic" &>/dev/null; then
append-flags -Wl,--push-state,--as-needed,-latomic,--pop-state
fi
local mycmakeargs=(
-DBUILD_LADSPA_PLUGIN=$(usex ladspa ON OFF)
-DBUILD_LV2_PLUGIN=$(usex lv2 ON OFF)