Re: Merging gio into glib
- From: Alexander Larsson <alexl redhat com>
- To: Behdad Esfahbod <behdad behdad org>
- Cc: gtk-devel-list <gtk-devel-list gnome org>, Xan <xan lopez gmail com>
- Subject: Re: Merging gio into glib
- Date: Sun, 11 Nov 2007 21:16:26 +0100
On Fri, 2007-11-09 at 14:43 -0500, Behdad Esfahbod wrote:
> > There is a slight problem with ldconfig. It goes throught the
> > $prefix/lib directory and "fixes" up all symlinks based on the actual
> > soname in the files. This means it will change the libglib.so.0 symlink
> > to point to libglib.so, totally breaking things. I've worked around this
> > by having the dummy library be in another directory
> > ($libdir/glib-2.0/dummy/) which causes ldconfig not to change anything.
>
> Makes sense to have them in a separate lib as they are not actual
> libraries. $libdir/glib-2.0/stubs or something... and pkg-config makes
> it completely transparent. Though the pkg-config --libs should probably
> give full path to the stub object instead of -L followed by -l.
I'm not sure what pkg-config should output, especially if that then gets
put into libtool .la files. However, imho we really need to ship the
symlink so that "-lglib -lgobject" gcc lines keep working. Not everyone
uses pkg-config.
> You can gain even more. I guess with your approach, gobject is not
> linking to "internal" glib objects, but to the public aliases. That is,
> it's going through PLT entries. That can be optimized too. We need to
> find a extensible scheme to include the aliases files from all modules
> being combined and do all the work...
I don't think this will be that hard.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]