git: a2d5ef79f6d6 - main - net/tightvnc: fix build without GCC on powerpc* and riscv64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 25 Apr 2022 14:28:16 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a2d5ef79f6d65d4b18828cc7c28cd294b331fd68
commit a2d5ef79f6d65d4b18828cc7c28cd294b331fd68
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-04-25 14:12:30 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-04-25 14:12:30 +0000
net/tightvnc: fix build without GCC on powerpc* and riscv64
aarch64 needs to be tested separately.
---
net/tightvnc/Makefile | 2 +-
.../patch-Xvnc__programs__Xserver__hw__xfree86__common__compiler.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/tightvnc/Makefile b/net/tightvnc/Makefile
index 23ff2826e489..6d7c5a7ef025 100644
--- a/net/tightvnc/Makefile
+++ b/net/tightvnc/Makefile
@@ -42,7 +42,7 @@ PREFIX=${TIGHTVNC_BASE}
.include <bsd.port.pre.mk>
-.if ${ARCH} == aarch64 || ${ARCH:Mpowerpc*} || ${ARCH} == riscv64
+.if ${ARCH} == aarch64
USE_GCC= yes
.endif
diff --git a/net/tightvnc/files/patch-Xvnc__programs__Xserver__hw__xfree86__common__compiler.h b/net/tightvnc/files/patch-Xvnc__programs__Xserver__hw__xfree86__common__compiler.h
index 7c04be736d08..938ce65b1e0b 100644
--- a/net/tightvnc/files/patch-Xvnc__programs__Xserver__hw__xfree86__common__compiler.h
+++ b/net/tightvnc/files/patch-Xvnc__programs__Xserver__hw__xfree86__common__compiler.h
@@ -5,7 +5,7 @@
#define write_mem_barrier() /* NOP */
-#if !defined(FAKEIT) && !defined(__mc68000__)
-+#if !defined(FAKEIT) && !defined(__mc68000__) && !defined(__arm__)
++#if !defined(FAKEIT) && !defined(__mc68000__) && !defined(__arm__) && !defined(__powerpc__) && !defined(__riscv)
#ifdef GCCUSESGAS
/*