Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 276307 - dev-python/numpy is passing libraries through append-ldflags
Summary: dev-python/numpy is passing libraries through append-ldflags
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: append-ldflags-libs
  Show dependency tree
 
Reported: 2009-07-02 22:03 UTC by Christian Ruppert (idl0r)
Modified: 2009-08-18 17:22 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Ruppert (idl0r) gentoo-dev 2009-07-02 22:03:36 UTC
The reason is that LDFLAGS should _not_ be used for libraries, as it has to be
positioned before the list of objects to link together, while libraries should
go after.

This mistake in commandline is what causes as-needed to either fail or not
apply at all (if LDFLAGS are put at the end).

Please fix your package not to pass libraries through LDFLAGS.
Comment 1 Sébastien Fabbro (RETIRED) gentoo-dev 2009-08-18 16:58:55 UTC
Hi,

numpy build system is very unstable and does not respect many flags, not only LDFLAGS. Upstream is working slowly in using scons, meanwhile the append-ldflags in the ebuild is necessary as a hack.
See http://projects.scipy.org/numpy/ticket/573 and others.

Please re-open with a build log if you see your LDFLAGS flags don't get passed.
Thanks.

Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2009-08-18 17:02:45 UTC
Problem is that they get passed with e.g. -Wl,--as-needed which passing libraries with append-ldflags breaks.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2009-08-18 17:22:01 UTC
Nevermind, should have checked the upstream bug before reopening.