Summary: | sys-power/nut fails to build with --as-needed | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Diego Elio Pettenò (RETIRED) <flameeyes> |
Component: | New packages | Assignee: | Robin Johnson <robbat2> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | esigra |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 129413, 321493 |
Description
Diego Elio Pettenò (RETIRED)
2010-05-04 18:30:54 UTC
I need more detail. They do have both LIBS and LDFLAGS variables. LDFLAGS="`pkg-config --silence-errors --libs openssl`" ^^^^^^^ wrong variable. This will cause a call to $(CC) -lssl conftest.o The same applies to most of ${S}/m4/nut_check_*.m4. Not sure why they reinvented the wheel, given that PKG_CHECK_MODULES does it all on its own. to clarify, simply renaming those vars (LDFLAGS to LIBS) fixes this, even a simple sed should work, I haven't tested it thoroughly though + 01 Jul 2010; Samuli Suominen <ssuominen@gentoo.org> nut-2.4.3-r2.ebuild, + +files/nut-2.4.3-asneeded.patch: + Fix building with -Wl,--as-needed wrt #318481 by Diego E. Pettenò. |