From 20b1cd76105c5ba9e8ea908da563e5dd765324b0 Mon Sep 17 00:00:00 2001 From: Hakan Olsson Date: Wed, 23 Jun 2004 01:17:30 +0000 Subject: Make compiling with Boehm's gc possible again. --- sbin/isakmpd/Makefile | 28 +++------------------------- 1 file changed, 3 insertions(+), 25 deletions(-) (limited to 'sbin/isakmpd/Makefile') diff --git a/sbin/isakmpd/Makefile b/sbin/isakmpd/Makefile index b57f1d312c1..f3e7d1136c7 100644 --- a/sbin/isakmpd/Makefile +++ b/sbin/isakmpd/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.54 2004/06/21 23:28:18 ho Exp $ +# $OpenBSD: Makefile,v 1.55 2004/06/23 01:17:29 ho Exp $ # $EOM: Makefile,v 1.78 2000/10/15 21:33:42 niklas Exp $ # @@ -96,31 +96,9 @@ CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes \ # If you like to use Boehm's garbage collector (/usr/ports/devel/boehm-gc). #LDADD+= -L/usr/local/lib -lgc #DPADD+= /usr/local/lib/libgc.a - +#CFLAGS+= -DUSE_BOEHM_GC # You can also use Boehm's garbage collector as a means to find leaks. -# XXX The defines below are GCC-specific. I think it is OK to require -# XXX GCC if you are debugging isakmpd in this way. -#LDADD+= -L/usr/local/lib -lleak -#DPADD+= /usr/local/lib/libleak.a -#CFLAGS+= -D'malloc(x)=({ \ -# void *GC_debug_malloc (size_t, char *, int); \ -# GC_debug_malloc ((x), __FILE__, __LINE__); \ -# })' \ -# -D'realloc(x,y)=({ \ -# void *GC_debug_realloc (void *, size_t, char *, int); \ -# GC_debug_realloc ((x), (y), __FILE__, __LINE__); \ -# })' \ -# -D'free(x)=({ \ -# void GC_debug_free (void *); \ -# GC_debug_free (x); \ -# })' \ -# -D'calloc(x,y)=malloc((x) * (y))' \ -# -D'strdup(x)=({ \ -# char *strcpy (char *, const char *); \ -# const char *_x_ = (x); \ -# char *_y_ = malloc (strlen (_x_) + 1); \ -# strcpy (_y_, _x_); \ -# })' +# # setenv GC_FIND_LEAK SUBDIR= apps -- cgit v1.2.3