Re: Dependency libraries and ABI
- From: Owen Taylor <otaylor redhat com>
- To: Mirko Streckenbach <strecken infosun fmi uni-passau de>
- Cc: gtk-devel-list gnome org
- Subject: Re: Dependency libraries and ABI
- Date: Fri, 1 Mar 2002 22:36:50 -0500 (EST)
Mirko Streckenbach <strecken infosun fmi uni-passau de> writes:
> Owen Taylor <otaylor redhat com> writes:
>
> > - Omit dependency libraries from the pkg-config output lines if we
> > think we are on a platform that support shared library dependencies.
> > We could autodetect this or, more simply, have a configuration
> > option --disable-direct-dependencies (or something.)
> >
> > [ This breaks static linking, of course, but not many people want to
> > static link. In the future, we can enhance pkg-config to have some
> > special support for static-linking-only dependencies. ]
> >
> > This means that libgtk-2.0.so.0 will pull in libXft.so.1, but the
> > app won't pull it in explicitely, so as long as the app isn't
> > using Xft directly, we can change GTK+ to link against libXft.so.2
>
> Remving -lXft from the .pc file won't be enough, because libtool
> stores this dependency in its .la file and may pull -lXft in again
> for every binary/library (transitivly) linked with -lpangoxft. As
> long as libtool is involved and libtool's .la files are not removed
> after installation, more things linked against gtk may be linked against
> Xft (at least on Linux or Solaris, libtool on other platform may vary),
> regardless of what is in the .pc file:
Indeed, my current patch for dealing with the issue has a
sanitize-la.sh like:
#!/bin/sh
sed "s/dependency_libs=.*/dependency_libs=''/" < $1 > $1T && mv $1T $1
That is run pangoft2.la, pangoxft2.la at 'make install' time.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]