pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/electric-fence turn off builtins for: calloc, ma...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0616238fa5d2
branches:  trunk
changeset: 331944:0616238fa5d2
user:      mrg <mrg%pkgsrc.org@localhost>
date:      Thu Mar 28 02:12:45 2019 +0000

description:
turn off builtins for: calloc, malloc, memalign, realloc, valloc, and free.

bump pkg revision.

this makes efence work with modern compilers.

diffstat:

 devel/electric-fence/Makefile |  13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 0ab53a000337 -r 0616238fa5d2 devel/electric-fence/Makefile
--- a/devel/electric-fence/Makefile     Wed Mar 27 20:47:36 2019 +0000
+++ b/devel/electric-fence/Makefile     Thu Mar 28 02:12:45 2019 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.6 2017/08/01 17:40:10 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2019/03/28 02:12:45 mrg Exp $
 
 DISTNAME=              electric-fence_2.1.13-0.1
 PKGNAME=               electric-fence-2.1.13.0.1
-PKGREVISION=           1
+PKGREVISION=           2
 CATEGORIES=            devel
 MASTER_SITES=          http://perens.com/works/software/ElectricFence/
 
@@ -29,5 +29,14 @@
 CFLAGS+=               -g
 .endif
 
+.if ${OPSYS} == "NetBSD"
+CFLAGS+=       -fno-builtin-calloc \
+               -fno-builtin-malloc \
+               -fno-builtin-memalign \
+               -fno-builtin-realloc \
+               -fno-builtin-valloc \
+               -fno-builtin-free
+.endif
+
 .include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index