how to cross-compile the Linux version of DS with jemalloc/tcmalloc support on Windows

I encountered an intermittent DS crash issue in the production environment, suspected to be caused by memory overflow. I want to integrate jemalloc in the production environment to locate this memory problem using heap profiling. However, I haven’t found any information on how to cross-compile the Linux version of DS with jemalloc/tcmalloc support on Windows. Would anyone with experience or knowledge be able to share some insights?