git: 37581a9c35b1 - main - devel/csmith: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 21 Jul 2023 15:42:01 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=37581a9c35b1d2c13a0a647d68717387fa69a433 commit 37581a9c35b1d2c13a0a647d68717387fa69a433 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-07-21 15:37:01 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-07-21 15:41:48 +0000 devel/csmith: Fix build with llvm16 Sponsored by: The FreeBSD Foundation --- devel/csmith/Makefile | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/devel/csmith/Makefile b/devel/csmith/Makefile index 926cbad8087a..d6672dde2d67 100644 --- a/devel/csmith/Makefile +++ b/devel/csmith/Makefile @@ -9,18 +9,26 @@ WWW= https://embed.cs.utah.edu/csmith/ LICENSE= BSD2CLAUSE +USES= gmake libtool localbase perl5 shebangfix +USE_CXXSTD= c++11 +USE_LDCONFIG= yes +USE_PERL5= run + +SHEBANG_FILES= scripts/compiler_test.pl scripts/launchn.pl + GNU_CONFIGURE= yes CONFIGURE_ARGS= --docdir=${DOCSDIR} -CPPFLAGS+= -I${LOCALBASE}/include -LIBS+= -L${LOCALBASE}/lib + INSTALL_TARGET= install-strip -USES= gmake libtool perl5 shebangfix -USE_PERL5= run -SHEBANG_FILES= scripts/compiler_test.pl scripts/launchn.pl -USE_LDCONFIG= yes + +PLIST_SUB= PKGNAME="${PKGNAME}" OPTIONS_DEFINE= DOCS -PLIST_SUB= PKGNAME="${PKGNAME}" +.include <bsd.port.options.mk> + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 +CPPFLAGS+= -Wno-error=enum-constexpr-conversion +.endif .include <bsd.port.mk>