git: 65d22e337b24 - main - devel/oclgrind: fix build on riscv64

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Wed, 19 Jan 2022 11:07:01 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=65d22e337b24d93b905df48fabce173fec80a430

commit 65d22e337b24d93b905df48fabce173fec80a430
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-01-19 11:04:10 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-01-19 11:04:10 +0000

    devel/oclgrind: fix build on riscv64
    
    ld: error: testCCompiler.c:(.text+0x0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
---
 devel/oclgrind/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/devel/oclgrind/Makefile b/devel/oclgrind/Makefile
index 26199bdbc7b0..24acd4a1ff1b 100644
--- a/devel/oclgrind/Makefile
+++ b/devel/oclgrind/Makefile
@@ -29,6 +29,7 @@ USE_LDCONFIG=	yes
 CC=		clang${LLVM_VER}
 CXX=		clang++${LLVM_VER}
 CPP=		clang-cpp${LLVM_VER}
+CFLAGS_riscv64=	-mno-relax
 
 CMAKE_ARGS+=	-DLLVM_DIR=${LOCALBASE}/llvm${LLVM_VER}/lib/cmake/llvm/