git: 9bb9679da468 - main - lang/yap: fix build on powerpc and powerpc64

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sun, 07 Nov 2021 12:19:36 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9bb9679da46823bdc138f3280f56aa1c68ebd95a

commit 9bb9679da46823bdc138f3280f56aa1c68ebd95a
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-11-07 12:14:50 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-11-07 12:14:50 +0000

    lang/yap: fix build on powerpc and powerpc64
    
    Use GCC because of clang issue:
    fatal error: error in backend: Invalid register name global variable
---
 lang/yap/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lang/yap/Makefile b/lang/yap/Makefile
index 5b4dfa2f2435..04d231c16a06 100644
--- a/lang/yap/Makefile
+++ b/lang/yap/Makefile
@@ -47,6 +47,10 @@ post-build-DOCS-off:
 
 .include <bsd.port.options.mk>
 
+.if ${ARCH} == powerpc64 || ${ARCH} == powerpc
+USES+=		compiler:gcc-c++11-lib
+.endif
+
 .if ${PORT_OPTIONS:MDOCS} && !${PORT_OPTIONS:MBUILDDOCS}
 MASTER_SITES+=	http://www.grosbein.net/freebsd/distfiles/:docs \
 		LOCAL/eugen:docs