git: 299eaaa88a76 - main - audio/faust: Attempt to fix failure on riscv64

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 21 Jul 2022 19:52:59 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=299eaaa88a7612ccd17243e2e889e2c62f009ead

commit 299eaaa88a7612ccd17243e2e889e2c62f009ead
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-21 19:52:31 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-21 19:52:31 +0000

    audio/faust: Attempt to fix failure on riscv64
    
    Reported by:    fallout
---
 audio/faust/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/audio/faust/Makefile b/audio/faust/Makefile
index 8e4cfdcc7b03..41f2f0f5e6d2 100644
--- a/audio/faust/Makefile
+++ b/audio/faust/Makefile
@@ -31,6 +31,7 @@ CMAKE_ARGS=	-C ${FILESDIR}/backends.cmake -DLLVM_CONFIG=${LOCALBASE}/bin/llvm-co
 
 CXXFLAGS+=	-I${WRKSRC}/compiler/generator/cpp # fatal error: 'cpp_code_container.hh' file not found WHEN INCLUDE_STATIC=TRUE
 CXXFLAGS+=	`llvm-config${LLVM_VERSION} --cflags` -DLLVM_${LLVM_VERSION}0 # for the llvm backend
+CXXFLAGS_riscv64=	-fPIC # attempt to fix failure: can't create dynamic relocation R_RISCV_HI20 against symbol: vtable for LV2UI in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
 LDFLAGS+=	-lexecinfo
 
 OPTIONS_DEFINE=		EXAMPLES HIGHLIGHT HTTPD_LIB