On 18 September 2015 at 11:30, Dominik Vogt wrote: > To debug a memory management issue in the Gcc code, I need to link > Gcc with a private, patched version of Glibc. What's the correct > way to do this? Is there some environment variable in the Gcc > build infrastructure that can help? I think you need to use the --with-sysroot option when configuring GCC. But I've never done it myself.