git: 6ce0588e3a08 - main - lang/lfortran: Unbreak this port on FreeBSD 12
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 14 Nov 2023 17:23:44 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=6ce0588e3a081446640995946ab14bcbffa27ef6
commit 6ce0588e3a081446640995946ab14bcbffa27ef6
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-11-14 16:53:49 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-11-14 17:16:49 +0000
lang/lfortran: Unbreak this port on FreeBSD 12
Approved by: portmgr (blanket)
---
lang/lfortran/Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lang/lfortran/Makefile b/lang/lfortran/Makefile
index 55af5fce060e..8c74edbe3189 100644
--- a/lang/lfortran/Makefile
+++ b/lang/lfortran/Makefile
@@ -9,7 +9,6 @@ WWW= https://lfortran.org/
LICENSE= BSD3CLAUSE
-BROKEN_FreeBSD_12= use of undeclared identifier '_Unwind_Backtrace'
BROKEN_i386= sizeof(YYSTYPE) != sizeof(Vec<AST::ast_t*>)
BUILD_DEPENDS= bash:shells/bash \
@@ -32,6 +31,9 @@ CMAKE_ON= LFORTRAN_BUILD_ALL WITH_DWARFDUMP WITH_FMT WITH_JSON \
WITH_LINKH WITH_LLVM WITH_STACKTRACE WITH_UNWIND
USE_LDCONFIG= yes
+CXXFLAGS+= ${CXXFLAGS_${OPSYS}_${OSREL:R}}
+CXXFLAGS_FreeBSD_12= -D_GNU_SOURCE
+
LLVM_VERSION= 15 # 16 is supported too
OPTIONS_DEFINE= EXAMPLES # NB