From 892b80d343ea92f11cade79d412a7ba3a0dc3ae3 Mon Sep 17 00:00:00 2001 From: Danilo Egea Gondolfo Date: Tue, 26 Jun 2018 02:28:18 +0000 Subject: [PATCH] - Unbreak build on ARM. Use malloc instead of sbrk. --- cad/irsim/Makefile | 3 +-- cad/irsim/files/patch-base_mem.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 cad/irsim/files/patch-base_mem.c diff --git a/cad/irsim/Makefile b/cad/irsim/Makefile index 4d8b7bd46450..1a3782dab6fa 100644 --- a/cad/irsim/Makefile +++ b/cad/irsim/Makefile @@ -3,6 +3,7 @@ PORTNAME= irsim PORTVERSION= 9.7.100 +PORTREVISION= 1 CATEGORIES= cad MASTER_SITES= http://opencircuitdesign.com/irsim/archive/ @@ -31,8 +32,6 @@ GNU_CONFIGURE= yes CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -BROKEN_aarch64= Fails to link: missing sbrk - .include .if ${PORT_OPTIONS:MTCL} diff --git a/cad/irsim/files/patch-base_mem.c b/cad/irsim/files/patch-base_mem.c new file mode 100644 index 000000000000..23c6710ba128 --- /dev/null +++ b/cad/irsim/files/patch-base_mem.c @@ -0,0 +1,11 @@ +--- base/mem.c.orig 2018-06-25 17:36:40 UTC ++++ base/mem.c +@@ -126,7 +126,7 @@ extern unsigned sleep(); + #define PAGE_MASK ( PAGE_SIZE - 1 ) + + #define FPRINTF (void) fprintf +-#if defined(CYGWIN) || defined(__APPLE__) ++#if defined(CYGWIN) || defined(__APPLE__) || defined(__FreeBSD__) + private Pointer GetMoreCore( npages ) + int npages; + {