Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 156596

Summary: dev-java/cpptasks-1.0_beta4 fix for -pg linker flag
Product: Gentoo Linux Reporter: Martijn Hijdra <hijdra>
Component: New packagesAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://sourceforge.net/tracker/index.php?func=detail&aid=829906&group_id=36177&atid=416920
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: fix -pg linker option

Description Martijn Hijdra 2006-11-29 04:32:52 UTC
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
Comment 1 Martijn Hijdra 2006-11-29 04:34:05 UTC
Created attachment 102974 [details, diff]
fix -pg linker option

can be used in ebuild to fix the problem
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2007-02-10 12:22:36 UTC
(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.
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2007-02-10 12:25:39 UTC
http://sourceforge.net/tracker/index.php?func=detail&aid=829906&group_id=36177&atid=416920

I found an upstream bug report for this.
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2007-02-10 12:43:43 UTC
I submitted a link to the patch in the upstream bug report and committed the patch to Portage. Thanks for reporting.