clean up unused link dependencies for malloc_extension_c_test

We used to explicitly link to libstdc++, libm and even libpthread, but
this should be handled by libtool since those are dependencies of
libtcmalloc_minimal. What also helps is we now build everything with
C++ compiler, not C. So libstdc++ or (libc++) dependency doesn't need
to be added at all, even if libtool for some reason fails to handle
it.
This commit is contained in:
Aliaksey Kandratsenka 2023-07-09 16:11:51 -04:00
parent ea47513a8f
commit 26927d1333

View File

@ -635,12 +635,8 @@ malloc_extension_c_test_SOURCES = src/tests/malloc_extension_c_test.cc \
src/gperftools/malloc_extension.h \
src/gperftools/malloc_extension_c.h
malloc_extension_c_test_CFLAGS = $(PTHREAD_CFLAGS) $(AM_CFLAGS)
# -ansi here is just to help ensure the code is bog-standard C.
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++ -lm
malloc_extension_c_test_LDADD = libtcmalloc_minimal.la
endif !MINGW
if !MINGW