science/fasthenry: use malloc instead of sbrk

Enable existing NO_SBRK option via CFLAGS
This commit is contained in:
Brooks Davis 2023-12-07 22:15:31 +00:00
parent edcb34baff
commit 162f181fec

View file

@ -1,5 +1,6 @@
PORTNAME= fasthenry PORTNAME= fasthenry
DISTVERSION= 3.0wr-021113 DISTVERSION= 3.0wr-021113
PORTREVISION= 1
CATEGORIES= science cad CATEGORIES= science cad
MASTER_SITES= http://www.wrcad.com/ftp/pub/ LOCAL/bf MASTER_SITES= http://www.wrcad.com/ftp/pub/ LOCAL/bf
@ -7,15 +8,14 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Multipole-accelerated inductance analysis program COMMENT= Multipole-accelerated inductance analysis program
WWW= https://www.rle.mit.edu/cpg/research_codes.htm WWW= https://www.rle.mit.edu/cpg/research_codes.htm
BROKEN_aarch64= Fails to link: missing sbrk
BROKEN_riscv64= Fails to link: missing sbrk
HAS_CONFIGURE= yes HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= config CONFIGURE_SCRIPT= config
WRKSRC= ${WRKDIR}/fasthenry-3.0wr WRKSRC= ${WRKDIR}/fasthenry-3.0wr
# Fix build with clang11 # Fix build with clang11
CFLAGS+= -fcommon CFLAGS+= -fcommon
# Use malloc
CFLAGS+= -DNO_SBRK
OPTIONS_DEFINE= DOCS EXAMPLES OPTIONS_DEFINE= DOCS EXAMPLES