pkgsrc/devel/electric-fence/Makefile
mrg 9adb49b1ce turn off builtins for: calloc, malloc, memalign, realloc, valloc, and free.
bump pkg revision.

this makes efence work with modern compilers.
2019-03-28 02:12:45 +00:00

42 lines
1 KiB
Makefile

# $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= 2
CATEGORIES= devel
MASTER_SITES= http://perens.com/works/software/ElectricFence/
MAINTAINER= pkgsrc-users@NetBSD.org
#HOMEPAGE= http://perens.com/FreeSoftware/
COMMENT= Different kind of malloc() debugger
CONFLICTS+= ElectricFence-[0-9]*
PREV_PKGPATH= devel/electricfence
SUPERSEDES= ElectricFence<=2.1.13.0.1
USE_LIBTOOL= yes
WRKSRC= ${WRKDIR}/${DISTNAME:C/-0.1//1:C/_/-/1}
MAKE_FLAGS= INSTALL_MAN=${INSTALL_MAN:Q}
PTHREAD_AUTO_VARS= yes
AUTO_MKDIRS= yes
.include "../../mk/bsd.prefs.mk"
.if ${MACHINE_ARCH} == "mipsel" || ${OPSYS} == "DragonFly"
CFLAGS+= -g -DPAGE_PROTECTION_VIOLATED_SIGNAL=SIGBUS
.else
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"