diff --git a/editors/openoffice-4/Makefile b/editors/openoffice-4/Makefile index 39d192072f3e2..05a8bc8e9ecac 100644 --- a/editors/openoffice-4/Makefile +++ b/editors/openoffice-4/Makefile @@ -198,6 +198,14 @@ TARGET_ORDER_OVERRIDE= 710:gnome-post-icons WITH= SDK .endif +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1500005 +# linker error when compiling with llvm 17.0.6 on CURRENT +USES+= llvm:max=16 +CHOSEN_COMPILER_TYPE= clang +.endif + .include .if ${OPSYS} == FreeBSD && ( \ diff --git a/editors/openoffice-devel/Makefile b/editors/openoffice-devel/Makefile index 79d9cbcea32d3..c6b574bf6cd24 100644 --- a/editors/openoffice-devel/Makefile +++ b/editors/openoffice-devel/Makefile @@ -230,6 +230,14 @@ TARGET_ORDER_OVERRIDE= 710:gnome-post-icons WITH= SDK .endif +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1500005 +# linker error when compiling with llvm 17.0.6 on CURRENT +USES+= llvm:max=16 +CHOSEN_COMPILER_TYPE= clang +.endif + .include .if ${OPSYS} == FreeBSD && ( \