I'm looking for a way to override the default malloc library in Ubuntu. I have created my own malloc library which includes malloc / free / realloc / calloc, and would like to try to start programs with it.
So far I tried LD_LIBRARY_PATH=. ./a.out but it's still using the system library (I know because I placed a write in the malloc function to verify it's mine).
What am I missing ?