mirror of
https://github.com/gperftools/gperftools
synced 2024-12-22 23:32:18 +00:00
start building malloc_extension_c_test even with static linking
Comment in Makefile.am stating that it doesn't work with static linking is not accurate anymore.
This commit is contained in:
parent
d570a6391c
commit
1035d5c18f
11
Makefile.am
11
Makefile.am
@ -660,12 +660,10 @@ malloc_extension_test_CXXFLAGS = $(PTHREAD_CFLAGS) $(AM_CXXFLAGS)
|
||||
malloc_extension_test_LDFLAGS = $(PTHREAD_CFLAGS) $(TCMALLOC_FLAGS)
|
||||
malloc_extension_test_LDADD = $(LIBTCMALLOC_MINIMAL) $(PTHREAD_LIBS)
|
||||
|
||||
# This doesn't work with static linkage, because libtcmalloc.a isn't
|
||||
# happy with C linkage (it misses the stdc++ library). Likewise with
|
||||
# mingw, which links foo.a even though it doesn't set ENABLE_STATIC.
|
||||
# TODO(csilvers): set enable_static=true in configure.ac:36?
|
||||
# This doesn't work with mingw, which links foo.a even though it
|
||||
# doesn't set ENABLE_STATIC. TODO(csilvers): set enable_static=true
|
||||
# in configure.ac:36?
|
||||
if !MINGW
|
||||
if !ENABLE_STATIC
|
||||
TESTS += malloc_extension_c_test
|
||||
malloc_extension_c_test_SOURCES = src/tests/malloc_extension_c_test.c \
|
||||
src/gperftools/malloc_extension.h \
|
||||
@ -676,8 +674,7 @@ if GCC
|
||||
malloc_extension_c_test_CFLAGS += -ansi
|
||||
endif GCC
|
||||
malloc_extension_c_test_LDFLAGS = $(PTHREAD_CFLAGS) $(TCMALLOC_FLAGS)
|
||||
malloc_extension_c_test_LDADD = $(LIBTCMALLOC_MINIMAL) $(PTHREAD_LIBS) -lstdc++
|
||||
endif !ENABLE_STATIC
|
||||
malloc_extension_c_test_LDADD = $(LIBTCMALLOC_MINIMAL) $(PTHREAD_LIBS) -lstdc++ -lm
|
||||
endif !MINGW
|
||||
|
||||
if !MINGW
|
||||
|
Loading…
Reference in New Issue
Block a user