To be more specific, I'm using visual-c++ in a MingW environment. I've got a makefile that is defining LDFLAGS as such:
LDFLAGS="-MACHINE:X64 -OPT:REF,ICF -FORCE libtcmalloc_minimal.lib -INCLUDE:__tcmalloc"
If I build my program this way, I'm required to distribute libtcmalloc_minimal.dll along with the program.
I'm assuming if this was GCC or the likes I'd use -static
but that flag isn't recognized by visual-c++. Is there a way to force this lib to be implemented statically?