I’m trying to make bytehound memory profiler a nix package. The issue I have problem comes from a tikv-jemalloc-sys. I saw that jemalloc is compiled within the build.rs script, this causes problems and so I compiled jemalloc manually from the package(correct version) and then override a variable that allows you to point to the linker object (JEMALLOC_OVERRIDE).
I however get errors such as this “undefined reference to `_rjem_mp_malloc’” reproducable:
When building this project outside of nix I seem to be able to find the symbols and am unaware why the symbols can’t be found within nix.