git: e48d5a4dfb8c - main - devel/p5-Compiler-Lexer: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 Jun 2023 00:10:02 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=e48d5a4dfb8cf0d9a4dc081d02dab1854eb125f3 commit e48d5a4dfb8cf0d9a4dc081d02dab1854eb125f3 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-06-25 23:07:48 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-06-26 00:09:45 +0000 devel/p5-Compiler-Lexer: Fix build with llvm16 Sponsored by: The FreeBSD Foundation --- devel/p5-Compiler-Lexer/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/devel/p5-Compiler-Lexer/Makefile b/devel/p5-Compiler-Lexer/Makefile index 59894d75b2c7..433d61c57629 100644 --- a/devel/p5-Compiler-Lexer/Makefile +++ b/devel/p5-Compiler-Lexer/Makefile @@ -16,6 +16,12 @@ BUILD_DEPENDS= p5-Module-Build-XSUtil>0:devel/p5-Module-Build-XSUtil USES= perl5 USE_PERL5= modbuild +.include <bsd.port.options.mk> + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 +CFLAGS+= -Dregister= +.endif + post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Compiler/Lexer/Lexer.so