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

Bug 247930

Summary: net-analyzer/jnettop: fails with forced --as-needed
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Gentoo Netmon project <netmon>
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 129413    
Attachments: Build log
Patch to fix library ordering and to respect user CFLAGS

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-21 12:16:28 UTC
I'm reporting this bug because the package in summary fails to build when forcing --as-needed on through spec files (check out for details).

Check the attached build log.

Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-21 12:16:59 UTC
Created attachment 172672 [details]
Build log
Comment 2 Kevin Pyle 2009-02-13 04:51:27 UTC
Created attachment 181832 [details, diff]
Patch to fix library ordering and to respect user CFLAGS

The upstream places libraries in AM_LDFLAGS, which is wrong.  They should be in jnettop_LDADD.

The upstream also overwrites CFLAGS, so user CFLAGS are not respected.  This patch removes that inappropriate assignment, since neither of the specified flags are worth retaining.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-06-02 11:54:22 UTC
Thanks Kevin, patch applied now.