git: 6a0bccd2c0a5 - main - devel/directfb: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 24 Jun 2023 10:59:04 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=6a0bccd2c0a5ff14b2c9295cfd10c80c65cfb9e1
commit 6a0bccd2c0a5ff14b2c9295cfd10c80c65cfb9e1
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-24 10:55:54 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-24 10:58:49 +0000
devel/directfb: Fix build with llvm16
Sponsored by: The FreeBSD Foundation
---
devel/directfb/Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/devel/directfb/Makefile b/devel/directfb/Makefile
index 0e3f1f30d879..5ff1754dbd47 100644
--- a/devel/directfb/Makefile
+++ b/devel/directfb/Makefile
@@ -64,6 +64,10 @@ X11_CONFIGURE_ENABLE= x11
CFLAGS+= -Wno-error=int-conversion
.endif
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CPPFLAGS+= -Dregister=
+.endif
+
# assembly files use old split syntax which clang doesn't like
.if ${ARCH:Marmv?} && ${COMPILER_TYPE} == "clang"
BUILD_DEPENDS+= as:devel/binutils