Skip to content

Commit

Permalink
make: add tmalloc lib dep in tcmalloc guard
Browse files Browse the repository at this point in the history
Fixes --without-tcmalloc on boxes without libtcmalloc.

Signed-off-by: Noah Watkins <[email protected]>
  • Loading branch information
dotnwat committed Sep 13, 2013
1 parent 388dd1e commit 3f8c969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/perfglue/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ libperfglue_la_SOURCES =

if WITH_TCMALLOC
libperfglue_la_SOURCES += perfglue/heap_profiler.cc
libperfglue_la_LIBADD = -ltcmalloc
AM_CFLAGS += -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free
AM_CXXFLAGS += -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free
else
Expand All @@ -14,7 +15,6 @@ else
libperfglue_la_SOURCES += perfglue/disabled_stubs.cc
endif # WITH_PROFILER

libperfglue_la_LIBADD = -ltcmalloc
noinst_LTLIBRARIES += libperfglue.la

noinst_HEADERS += \
Expand Down

0 comments on commit 3f8c969

Please sign in to comment.