When using cpptasks to link files with profiling enabled (-pg) this flag is not recognized so cpptasks will prepend a -Wl, to it which results in the "-Wl,-pg" flag which is unknown to the gcc/gpp linker. please see attached patch to solve the problem
Created attachment 102974 [details, diff] fix -pg linker option can be used in ebuild to fix the problem
(In reply to comment #1) > Created an attachment (id=102974) [edit] > fix -pg linker option > > can be used in ebuild to fix the problem > Please submit this patch upstream too.
http://sourceforge.net/tracker/index.php?func=detail&aid=829906&group_id=36177&atid=416920 I found an upstream bug report for this.
I submitted a link to the patch in the upstream bug report and committed the patch to Portage. Thanks for reporting.