summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2012-04-09 08:02:42 +0400
committerIvan Maidanski <ivmai@mail.ru>2012-04-09 12:17:57 +0400
commit92bd2e3d95d6dcab9ffd2dc5db92970f8fcb066c (patch)
treec372d188047aa42117b92efc7f4f15f7fb85b9f2 /Makefile.am
parent003f5149258f1e8436f1514031ca1590624fe546 (diff)
downloadbdwgc-92bd2e3d95d6dcab9ffd2dc5db92970f8fcb066c.tar.gz
Do not compile backgraph.c unless configure '--enable-gc-debug'
* Makefile.am (libgc_la_SOURCES): Exclude "backgraph" entry from unconditional list; add this entry only if MAKE_BACK_GRAPH. * configure.ac (MAKE_BACK_GRAPH): New AM conditional (defined only if enable_gc_debug explicitly set to yes).
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 51d80ae1..2aacca29 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -54,7 +54,7 @@ libgc_la_SOURCES = extra/gc.c
else
EXTRA_DIST += extra/gc.c
libgc_la_SOURCES = \
- allchblk.c alloc.c backgraph.c blacklst.c checksums.c dbg_mlc.c \
+ allchblk.c alloc.c blacklst.c checksums.c dbg_mlc.c \
dyn_load.c finalize.c gc_dlopen.c gcj_mlc.c headers.c \
mach_dep.c malloc.c mallocx.c mark.c mark_rts.c misc.c new_hblk.c \
obj_map.c os_dep.c pcr_interface.c ptr_chck.c real_malloc.c reclaim.c \
@@ -76,6 +76,10 @@ endif
endif
endif
+if MAKE_BACK_GRAPH
+libgc_la_SOURCES += backgraph.c
+endif
+
if ENABLE_DISCLAIM
libgc_la_SOURCES += fnlz_mlc.c
endif