- What version of MacPorts gcc you have installed is immaterial; most ports, including google-perftools, use the compilers they specify, which is most often the version of clang provided by Xcode.
- MacPorts does not install files in /usr/lib or /usr/local/lib; it installs in its own prefix, which is usually /opt/local. However, I can confirm that the port does not install libprofiler.dylib in /opt/local/lib.
I do see this output from the configure phase:
checking how to access the program counter from a struct ucontext... configure: WARNING: Could not find the PC. Will not try to compile libprofiler...
I don't know how to work around that problem.
We should try updating the port to version 2.5 which is now available from https://github.com/gperftools/gperftools/releases