Re: get rid static libraries or fix them
- From: Stanislav Brabec <sbrabec suse cz>
- To: James Henstridge <james jamesh id au>
- Cc: desktop-devel-list gnome org
- Subject: Re: get rid static libraries or fix them
- Date: Thu, 08 Feb 2007 16:12:01 +0100
James Henstridge wrote:
> If you find things missing from Requires.private or Libs.private for a
> package, please report bugs.
See
http://bugzilla.gnome.org/show_bug.cgi?id=405352#c2
However my guess, where private libraries are missing, may be incorrect.
Another problem with static libraries is a problem with linking with by
default shared only (for good reason) libgtk-x11-2.0.so, which implies
need for:
-Wl,-Bdynamic -lgtk-x11-2.0 -Wl,-Bstatic
instead of simple:
-lgtk-x11-2.0
This may be considered as a problem of gtk:
pkg-config --static --libs gtk+-2.0
will not work, unless you compile static gtk+ and pango libraries by
explicit recompilation with --enable-static.
So if package disable static library by AM_DISABLE_STATIC, the *.pc it
should care about -Wl,-Bdynamic and -Wl,-Bstatic.
It seems, that pkg-config does not support it, so I consider it as a
lack of feature in pkg-config.
I have just reported it as:
https://bugs.freedesktop.org/show_bug.cgi?id=9917
--
Best Regards / S pozdravem,
Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o. e-mail: sbrabec suse cz
Lihovarská 1060/12 tel: +420 284 028 966
190 00 Praha 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]