Summary: | net-analyzer/ifstatus: fails with forced --as-needed | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Diego Elio Pettenò (RETIRED) <flameeyes> |
Component: | New packages | Assignee: | Gentoo Netmon project <netmon> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://www.gentoo.org/proj/en/qa/asneeded.xml | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 129413 | ||
Attachments: |
Build log
Patch to Makefile to fix linking with --as-needed and to respect user LDFLAGS |
Description
Diego Elio Pettenò (RETIRED)
2008-11-21 12:13:58 UTC
Created attachment 172669 [details]
Build log
Created attachment 179504 [details, diff]
Patch to Makefile to fix linking with --as-needed and to respect user LDFLAGS
This failure is the typical problem of passing libraries using LDFLAGS instead of LDLIBS. The Makefile also overwrote user LDFLAGS with a fixed "-lncurses". This patch drops the assignment of LDFLAGS and moves the -lncurses to LDLIBS, so that libraries are referenced after the object files that need them.
Thanks Kevin, applied now! |