Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132563 - dev-java/commons-daemon: fix -Wl,--as-needed compilation
Summary: dev-java/commons-daemon: fix -Wl,--as-needed compilation
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Java team
Depends on:
Blocks: as-needed
  Show dependency tree
Reported: 2006-05-07 06:57 UTC by TGL
Modified: 2006-05-12 06:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

files/commons-daemon-1.0.1-as-needed.patch (commons-daemon-1.0.1-as-needed.patch,1.26 KB, patch)
2006-05-07 06:58 UTC, TGL
Details | Diff
commons-daemon-1.0.1-ebuild.patch (commons-daemon-1.0.1-ebuild.patch,328 bytes, patch)
2006-05-07 06:58 UTC, TGL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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: