- fixed build when using --enable-leak-detective
This commit is contained in:
@@ -77,7 +77,6 @@ AC_ARG_ENABLE(
|
||||
[leak-detective],
|
||||
AS_HELP_STRING([--enable-leak-detective],[enable malloc hooks to find memory leaks (default is NO).]),
|
||||
leak_detective=true
|
||||
AC_DEFINE(LEAK_DETECTIVE)
|
||||
)
|
||||
AM_CONDITIONAL(USE_LEAK_DETECTIVE, test x$leak_detective = xtrue)
|
||||
|
||||
|
||||
@@ -20,6 +20,12 @@ INCLUDES = -I$(top_srcdir)/src/libstrongswan
|
||||
EXTRA_DIST = asn1/oid.txt asn1/oid.pl
|
||||
DISTCLEANFILES = asn1/oid.c asn1/oid.h
|
||||
|
||||
if USE_LEAK_DETECTIVE
|
||||
libstrongswan_la_LIBADD += -ldl
|
||||
AM_CFLAGS = -DLEAK_DETECTIVE
|
||||
endif
|
||||
|
||||
|
||||
# TODO: get perl from ./configure
|
||||
PERL=perl
|
||||
|
||||
|
||||
Reference in New Issue
Block a user