[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Hardcoding of .la file paths in .la files



Le lun 13/10/2003 à 21:36, Steve Langasek a écrit :
> > All this additional information can be provided as well by pkg-config,
> > which is much more flexible and doesn't cause random breakages.
> 
> $ pkg-config libgnomecanvas-2.0 --libs
> -Wl,--export-dynamic -lgnomecanvas-2 -lart_lgpl_2 -lpangoft2-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0  
> $

This looks like a broken .pc file.

> It also doesn't even provide a complete list of all the indirect library
> dependencies, so this pkg-config line will even fail on platforms where
> libtool will succeed.  (E.g., try to statically link a binary using the
> above list without having to append '-lX11'.)  And if you use the
> pkg-config output as input for a libtool-using application, you'll get
> double the pleasure.

You're right as for static linking, I thought pkg-config supported
--static while it doesn't. Well, maybe it is better that way; I
personally feel we should deprecate the whole static linking stuff.
-- 
 .''`.           Josselin Mouette        /\./\
: :' :           josselin.mouette@ens-lyon.org
`. `'                        joss@debian.org
  `-  Debian GNU/Linux -- The power of freedom

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e=2E?=


Reply to: