From 1fdfaef16e9ec39b6531cb1b6e104017e0d83106 Mon Sep 17 00:00:00 2001 From: c9s Date: Thu, 22 May 2014 11:34:37 +0800 Subject: [PATCH] what if we always use -ljemalloc --- src/Makefile.am | 1 + tests/Makefile.am | 5 +++++ 2 files changed, 6 insertions(+) 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