Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 226863 (append-ldflags-libs) - [TRACKER] Ebuild passing libraries through append-ldflags
Summary: [TRACKER] Ebuild passing libraries through append-ldflags
Alias: append-ldflags-libs
Product: Quality Assurance
Classification: Unclassified
Component: Trackers (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Quality Assurance Team
Keywords: Tracker
Depends on: 226865 226869 226871 226873 226875 226877 226879 226881 226885 226887 226889 226891 226893 226895 226897 226899 226901 226905 226907 226909 226911 226913 226915 226917 226919 226921 226923 226925 226927 226929 226931 257996 276303 276305 276307 276308 276309
Blocks: as-needed
  Show dependency tree
Reported: 2008-06-14 18:07 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2021-07-21 00:41 UTC (History)
7 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-06-14 18:07:38 UTC
I've made append-ldflags throw a warning when libraries are passed through it to link them in.

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 Ed Wildgoose 2009-11-06 18:04:38 UTC
Rather than just saying what is bad, can you please also document the correct way to add additional libraries please? This is the number 1 hit for a google search on this and I'm still no nearer to finding out how I *should* write the ebuild

Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-11-06 18:08:34 UTC
Bugzilla is not a forums.

Beside, passing libraries depends on a per-package basis.
Comment 3 SpanKY gentoo-dev 2009-11-06 19:48:18 UTC
or ask on the gentoo dev help mailing list