Skip to content

Commit

Permalink
lang/scm: try unbreaking on the architectures without sbrk(2)
Browse files Browse the repository at this point in the history
Upstream's code seems to have special-handling for such platforms.
  • Loading branch information
Mikhail Teterin authored and Mikhail Teterin committed Jan 4, 2024
1 parent c8ea7b4 commit ad1e410
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lang/scm/Makefile
Expand Up @@ -13,14 +13,11 @@ WWW= https://people.csail.mit.edu/jaffer/SCM
LICENSE= LGPL3+
LICENSE_FILES= ${WRKSRC}/COPYING.LESSER

BROKEN_aarch64= fails to link: missing sbrk
BROKEN_riscv64= fails to link: missing sbrk
LIB_DEPENDS= libgnuregex.so:devel/libgnuregex

LIB_DEPENDS= libgnuregex.so.[5-9]:devel/libgnuregex
USES= readline zip

WRKSRC= ${WRKDIR}/${PORTNAME}

USES= readline zip
HAS_CONFIGURE= yes
CONFIGURE_ENV= --prefix=${PREFIX}
MAKE_JOBS_UNSAFE= yes
Expand Down Expand Up @@ -61,6 +58,10 @@ SCM_MODULES_X11=x.so
USES+= compiler:gcc-c++11-lib
.endif

.if ${ARCH} == aarch64 || ${ARCH} == riscv64
CFLAGS+= -DLACK_SBRK
.endif

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MX11}
Expand Down

0 comments on commit ad1e410

Please sign in to comment.