git: bdade1d07488 - main - misc/air: fix build on powerpc64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 10 May 2024 16:20:23 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=bdade1d07488ae8fa9270263d8e8d8aa8af3652c commit bdade1d07488ae8fa9270263d8e8d8aa8af3652c Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2024-05-08 08:56:48 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2024-05-10 16:19:49 +0000 misc/air: fix build on powerpc64 cargo:warning=/usr/local/llvm15/lib/clang/15.0.7/include/ppc_wrappers/xmmintrin.h:31:2: error: "Please read comment above. Use -DNO_WARN_X86_INTRINSICS to disable this error." --- misc/air/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/misc/air/Makefile b/misc/air/Makefile index 8893fbf32e9b..b0107658e1d3 100644 --- a/misc/air/Makefile +++ b/misc/air/Makefile @@ -211,12 +211,19 @@ CARGO_CRATES= addr2line-0.21.0 \ winreg-0.50.0 CFLAGS_powerpc64le= -DNO_WARN_X86_INTRINSICS +CFLAGS_powerpc64= -DNO_WARN_X86_INTRINSICS OPENSSLINC= /usr/include OPENSSLLIB= /usr/lib PLIST_FILES= bin/${PORTNAME} +.include <bsd.port.options.mk> + +.if ${ARCH} == powerpc64 && !defined(CPUTYPE) +CFLAGS+= -mcpu=power7 +.endif + post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}