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

Bug 226863 (append-ldflags-libs)

Summary: [TRACKER] Ebuild passing libraries through append-ldflags
Product: Quality Assurance Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: TrackersAssignee: Gentoo Quality Assurance Team <qa>
Status: CONFIRMED ---    
Severity: normal CC: dlan, esigra, gengor, jer, n-roeser,, sam
Priority: High Keywords: Tracker
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug 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    
Bug Blocks: 129413    

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