A way to reproduce:
cd examples
cargo build --features bundled -vv
and then ldd target/debug/tcmalloc-example:
linux-vdso.so.1 (0x00007ffe404dd000)
libtcmalloc.so.4 => /lib/x86_64-linux-gnu/libtcmalloc.so.4 (0x00007f9600852000)
...
and then readelf -s target/debug/tcmalloc-example | rg 'UND' | rg 'tc_':
11: 0000000000000000 0 FUNC GLOBAL DEFAULT UND tc_free
48: 0000000000000000 0 FUNC GLOBAL DEFAULT UND tc_memalign
775: 0000000000000000 0 FUNC GLOBAL DEFAULT UND tc_free
902: 0000000000000000 0 FUNC GLOBAL DEFAULT UND tc_memalign
A way to reproduce:
cd examples cargo build --features bundled -vvand then
ldd target/debug/tcmalloc-example:linux-vdso.so.1 (0x00007ffe404dd000) libtcmalloc.so.4 => /lib/x86_64-linux-gnu/libtcmalloc.so.4 (0x00007f9600852000) ...and then
readelf -s target/debug/tcmalloc-example | rg 'UND' | rg 'tc_':11: 0000000000000000 0 FUNC GLOBAL DEFAULT UND tc_free 48: 0000000000000000 0 FUNC GLOBAL DEFAULT UND tc_memalign 775: 0000000000000000 0 FUNC GLOBAL DEFAULT UND tc_free 902: 0000000000000000 0 FUNC GLOBAL DEFAULT UND tc_memalign