title: gcc: undefined reference to _mcount (gprof instrumentation)
body: <p>When compiling my c++ sources with the <code>-pg</code> option to inject gprof profile instrumentation code the compile fails with the <code>undefined reference to _mcount</code> error.</p>
  
  <p>Without this option everything compiles (and runs) fine.
  What is wrong in my case? (Solaris 10 SPARC Platform)</p>