You should not be running make as root or building in the /root directory.
If you read the documentation for the gcc option that you are using it says:
Print the full absolute name of the library file LIBRARY that
would be used when linking--and don't do anything else. With this
option, GCC does not compile or link anything; it just prints the
and then it printed what you asked it to: