pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/clisp Patterned after electric-fence, turn off bu...
details: https://anonhg.NetBSD.org/pkgsrc/rev/57e57e529735
branches: trunk
changeset: 398077:57e57e529735
user: he <he%pkgsrc.org@localhost>
date: Tue Jul 09 22:55:41 2019 +0000
description:
Patterned after electric-fence, turn off builtins for calloc, malloc,
memalign, realloc, valloc and free. Makes clisp work with modern compilers.
Bump PKGREVISION.
diffstat:
lang/clisp/Makefile | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r c56fa5c49737 -r 57e57e529735 lang/clisp/Makefile
--- a/lang/clisp/Makefile Tue Jul 09 20:36:21 2019 +0000
+++ b/lang/clisp/Makefile Tue Jul 09 22:55:41 2019 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.111 2019/05/04 19:38:08 rillig Exp $
+# $NetBSD: Makefile,v 1.112 2019/07/09 22:55:41 he Exp $
DISTNAME= clisp-2.49
-PKGREVISION= 24
+PKGREVISION= 25
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=clisp/}
#EXTRACT_SUFX= .tar.bz2
@@ -49,6 +49,16 @@
CONFIGURE_ARGS+= --disable-mmap
.endif
+# Try to make the built-in src/malloc/gmalloc.c work with modern GCC
+.if ${OPSYS} == "NetBSD"
+CFLAGS+= -fno-builtin-calloc
+CFLAGS+= -fno-builtin-malloc
+CFLAGS+= -fno-builtin-memalign
+CFLAGS+= -fno-builtin-realloc
+CFLAGS+= -fno-builtin-valloc
+CFLAGS+= -fno-builtin-free
+.endif
+
.if $(MACHINE_ARCH:Mi386)
CFLAGS+= -falign-functions=4 # force the assumption
.endif
Home |
Main Index |
Thread Index |
Old Index