pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/pkgsrc-2019Q2]: pkgsrc/lang/clisp Pullup ticket #5993 - requested by he



details:   https://anonhg.NetBSD.org/pkgsrc/rev/32297ebfeb80
branches:  pkgsrc-2019Q2
changeset: 408153:32297ebfeb80
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Sat Jul 13 09:32:44 2019 +0000

description:
Pullup ticket #5993 - requested by he
lang/clisp: build fix

Revisions pulled up:
- lang/clisp/Makefile                                           1.112

---
   Module Name: pkgsrc
   Committed By:        he
   Date:                Tue Jul  9 22:55:41 UTC 2019

   Modified Files:
        pkgsrc/lang/clisp: Makefile

   Log Message:
   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 8ff54520a8c0 -r 32297ebfeb80 lang/clisp/Makefile
--- a/lang/clisp/Makefile       Wed Jul 10 15:15:40 2019 +0000
+++ b/lang/clisp/Makefile       Sat Jul 13 09:32:44 2019 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.111 2019/05/04 19:38:08 rillig Exp $
+# $NetBSD: Makefile,v 1.111.2.1 2019/07/13 09:32:44 bsiegert 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