I am compiling gcc 8.5 from source on a linux cluster in my home directory (no root access).
I have exported -L/MYHOME/lib/' to CFLAGS, LDFLAGS, LD_LIBRARY_PATH and I am using "sh configure --prefix=/MYHOME" but the compilation stops at: /usr/bin/ld: cannot find -lmpc
Passing the -L flag should be sufficient, as a simple test works:
gcc main.c -lmpc -L /MYHOME/lib
Is there a way to include a user directory into the ld search path without having root access?
Thank you for your help.