About --enable-new-ldflags

David Faure faure at kde.org
Mon Jul 4 21:14:37 BST 2005


On Monday 04 July 2005 21:18, Thiago Macieira wrote:
> Szombathelyi György wrote:
> >Hi!
> >
> >The --enable-new-ldflags is a very good switch to reduce kde
> > dependencies. However there are some places where $(all_libraries)
> > missing, so the neccessary flags are not added to the linking process.
> > The attached patches fix this.
> 
> Thanks. I'd say apply.
> 
> I just have this vague memory of $(all_libraries) being necessary at the 
> beginning or the end of the line. Can someone clarify this?

IIRC placement of $(all_libraries) doesn't matter.
It's $(all_includes) which must be "after all local includes, like -Ifoo or -I.. or -I$(srcdir)/foo"
For libs, local libs are given with an explicit path (foo/libfoo.la) so there's no confusion with -L.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).





More information about the kde-core-devel mailing list