Using -as-needed in KDE
michaelnottebrock at gmx.net
Sun Apr 10 16:02:45 PDT 2005
On Monday, 11. April 2005 00:43, Michael Nottebrock wrote:
> On Monday, 11. April 2005 00:06, Alexander S. Usov wrote:
> > Hi!
> > Recently I found somewhat strange patch to Mk/bsd.kde.mk :
> > Revision 1.47
> > Globally disable -Wl,-as-needed for all users of USE_KDELIBS_VER.
> > Binaries linked with -pthread and -Wl,as-needed will have all
> > references to libphthread stripped (reason/reasoning unknown),
> > causing funny runtime errors when Qt decides to fire up a thread.
Actually, KDE itself turned off -as-needed by default shortly before KDE 3.4
was branched, since it was causing too many funky problems, so the extra
CONFIGURE_ARGS in bsd.kde.mk is mostly a no-op (except for programs which
ship with an admin-dir from KDE-HEAD on the road to 3.4).
We've put in an honest effort to get things to work with -as-needed during the
the KDE 3.4 shakedown, but the long story short is that the feature is just
too unreliable and causes too many problems. Libpthread also isn't the only
library that ld manages to magically spirit away, it's just the most obvious
showstopper for KDE.
,_, | Michael Nottebrock | lofi at freebsd.org
(/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org
\u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20050411/13f86038/attachment.bin
More information about the freebsd-ports