pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/clisp



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.


To generate a diff of this commit:
cvs rdiff -u -r1.111 -r1.112 pkgsrc/lang/clisp/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/clisp/Makefile
diff -u pkgsrc/lang/clisp/Makefile:1.111 pkgsrc/lang/clisp/Makefile:1.112
--- pkgsrc/lang/clisp/Makefile:1.111    Sat May  4 19:38:08 2019
+++ pkgsrc/lang/clisp/Makefile  Tue Jul  9 22:55:41 2019
@@ -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 @@ TEST_TARGET=         check mod-check
 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