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

Bug 132563

Summary: dev-java/commons-daemon: fix -Wl,--as-needed compilation
Product: Gentoo Linux Reporter: TGL <>
Component: [OLD] DevelopmentAssignee: Java team <java>
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 129413    
Attachments: files/commons-daemon-1.0.1-as-needed.patch

Description TGL 2006-05-07 06:57:41 UTC
commons-daemon-1.0.1 doesn't compile with LDFLAGS="-Wl,--as-needed", because it puts "-lfoo" directives in LDFLAGS instead of a separate variables. Hence the order of the arguments given to the linker is wrong, libs are skipped, and libservice has unresolved symbols.

The attached patch fixes that.
Comment 1 TGL 2006-05-07 06:58:22 UTC
Created attachment 86358 [details, diff]
Comment 2 TGL 2006-05-07 06:58:41 UTC
Created attachment 86359 [details, diff]
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2006-05-11 12:14:05 UTC
Have you also submitted these patches upstream? They should also be included there so that we are not stuck with maintaining them.
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2006-05-12 06:02:05 UTC
Fix committed to Portage and reported upstream: