diff options
author | he <he@pkgsrc.org> | 2019-07-09 22:55:41 +0000 |
---|---|---|
committer | he <he@pkgsrc.org> | 2019-07-09 22:55:41 +0000 |
commit | 8b85964fc131dbbd002dfb5fb4012560ec975682 (patch) | |
tree | 38535f97700191fb788f98499becbacc370cfaea /lang/clisp | |
parent | e34f7c3d572238edfca5d203e6cc69a0222be593 (diff) | |
download | pkgsrc-8b85964fc131dbbd002dfb5fb4012560ec975682.tar.gz |
Patterned after electric-fence, turn off builtins for calloc, malloc,
memalign, realloc, valloc and free. Makes clisp work with modern compilers.
Bump PKGREVISION.
Diffstat (limited to 'lang/clisp')
-rw-r--r-- | lang/clisp/Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lang/clisp/Makefile b/lang/clisp/Makefile index 59ce0d4b5c6..9d4899ff7f3 100644 --- a/lang/clisp/Makefile +++ b/lang/clisp/Makefile @@ -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 |