git: 80a04a9595db - main - biology/fermi-lite: fix build on powerpc64le

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Tue, 13 Aug 2024 09:41:35 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=80a04a9595dbc933e8acf3413ca4cc30a1260580

commit 80a04a9595dbc933e8acf3413ca4cc30a1260580
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-08-12 12:04:01 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-08-13 09:40:45 +0000

    biology/fermi-lite: fix build on powerpc64le
    
    In file included from ksw.c:28:
    /usr/lib/clang/18/include/ppc_wrappers/emmintrin.h:32:2: error: "Please read comment above.  Use -DNO_WARN_X86_INTRINSICS to disable this error."
       32 | #error                                                                         \
          |  ^
    In file included from ksw.c:28:
    In file included from /usr/lib/clang/18/include/ppc_wrappers/emmintrin.h:45:
    /usr/lib/clang/18/include/ppc_wrappers/xmmintrin.h:31:2: error: "Please read comment above. Use -DNO_WARN_X86_INTRINSICS to disable this error."
       31 | #error                                                                         \
          |  ^
    In file included from ksw.c:28:
    In file included from /usr/lib/clang/18/include/ppc_wrappers/emmintrin.h:45:
    In file included from /usr/lib/clang/18/include/ppc_wrappers/xmmintrin.h:58:
    /usr/lib/clang/18/include/ppc_wrappers/mmintrin.h:31:2: error: "Please read comment above.  Use -DNO_WARN_X86_INTRINSICS to disable this error."
       31 | #error                                                                         \
          |  ^
    3 errors generated.
---
 biology/fermi-lite/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/biology/fermi-lite/Makefile b/biology/fermi-lite/Makefile
index 86512a27552a..7d86d1c49267 100644
--- a/biology/fermi-lite/Makefile
+++ b/biology/fermi-lite/Makefile
@@ -17,6 +17,7 @@ USE_LDCONFIG=	yes
 USE_GITHUB=	yes
 GH_ACCOUNT=	lh3
 
+CFLAGS_powerpc64le=	-DNO_WARN_X86_INTRINSICS
 MAKE_ARGS=	CFLAGS="${CFLAGS}"
 
 BINARY_ALIAS=	gcc=${CC}