diff --git a/src/Makefile.am b/src/Makefile.am index 6616a97..9ad21b8 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -9,6 +9,7 @@ AM_CFLAGS=$(DEPS_CFLAGS) -I$(top_builddir) -I$(top_builddir)/include -Wall -std= if USE_JEMALLOC AM_CFLAGS += -ljemalloc endif +AM_CFLAGS += -ljemalloc if ENABLE_DEBUG AM_CFLAGS += -ggdb -fprofile-arcs -ftest-coverage diff --git a/tests/Makefile.am b/tests/Makefile.am index e52bd8d..534a841 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -17,6 +17,11 @@ dist_noinst_DATA = \ bench_str.csv \ $(NULL) +if USE_JEMALLOC +AM_CFLAGS += -ljemalloc +endif +AM_CFLAGS += -ljemalloc + if ENABLE_GRAPHVIZ TESTS += check_gvc check_gvc_SOURCES = check_gvc.c bench.c