commit: 60a43bbe3ad871d4129056d0942a1d33edb92e94
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 25 21:54:00 2021 +0000
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Thu Mar 25 21:54:21 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60a43bbe
media-libs/tg_owt: fix SSE2 build even better
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
media-libs/tg_owt/tg_owt-0_pre20210309.ebuild | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/media-libs/tg_owt/tg_owt-0_pre20210309.ebuild
b/media-libs/tg_owt/tg_owt-0_pre20210309.ebuild
index 0aa7644fe08..43dd4267f6c 100644
--- a/media-libs/tg_owt/tg_owt-0_pre20210309.ebuild
+++ b/media-libs/tg_owt/tg_owt-0_pre20210309.ebuild
@@ -64,9 +64,11 @@ src_prepare() {
# See https://bugs.debian.org/982556
sed -i -e 's/#ifndef NO_MAIN_THREAD_WRAPPING/#if 0/'
src/rtc_base/thread.cc || die
- # Causes forced inclusion of SSE2, so we strip it out on non-amd64
arches
+ # Causes forced inclusion of SSE2, so we strip it out on x86* arches
# https://github.com/desktop-app/tg_owt/pull/57
- use amd64 || sed -i '/modules\/desktop_capture/d' CMakeLists.txt || die
+ if ! use amd64 && ! use x86; then
+ sed -i '/modules\/desktop_capture/d' CMakeLists.txt || die
+ fi
cmake_src_prepare
}