diff src/Makefile.in.in @ 177:6075d714658b r20-3b15

Import from CVS: tag r20-3b15
author cvs
date Mon, 13 Aug 2007 09:51:16 +0200
parents 2d532a89d707
children bfd6434d15b3
line wrap: on
line diff
--- a/src/Makefile.in.in	Mon Aug 13 09:50:16 2007 +0200
+++ b/src/Makefile.in.in	Mon Aug 13 09:51:16 2007 +0200
@@ -184,6 +184,7 @@
 rallocobjs = ralloc.o
 #endif
 
+malloclib =
 #ifndef SYSTEM_MALLOC
 # ifdef GNU_MALLOC  /* New GNU malloc */
 #  ifdef ERROR_CHECK_MALLOC
@@ -200,6 +201,9 @@
 #else /* SYSTEM_MALLOC */
 mallocobjs =
 mallocdocsrc =
+#ifdef USE_DEBUG_MALLOC
+malloclib = -ldmalloc
+#endif /* USE_DEBUG_MALLOC */
 #endif /* SYSTEM_MALLOC */
 
 #ifdef HAVE_X_WINDOWS
@@ -258,7 +262,7 @@
 ## should not be told about.
 otherobjs = $(BTL_objs) lastfile.o $(mallocobjs) $(rallocobjs) $(X11_objs)
 
-LIBES = $(lwlib_libs) $(quantify_libs) $(ld_libs_all) $(lib_gcc)
+LIBES = $(lwlib_libs) $(quantify_libs) $(malloclib) $(ld_libs_all) $(lib_gcc)
 
 #ifdef I18N3
 mo_dir = ${etcdir}