[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: static libs
From: Kurt Granroth <granroth () kde ! org>
Date: 2000-05-14 7:41:24
[Download RAW message or body]
Michael Matz wrote:
> Hi,
>
> On Sat, 13 May 2000, Kurt Granroth wrote:
> > I think this came up before.. but I forgot. How can I compile some
> > static KDE binaries? I compiled qt and kde-qt-addon and kdelibs as
> > static libraries... but all binaries (even pure qt ones) complain
> > about undefined symbols that are defined in libpng, libjpeg, and
> > libSM.
>
> With static libraries there is no automatic resolving of dependencies in
> the linker. Only libtool made libs will carry that information (to some
> extent). So in the linkline you have to explicitly give the depending libs
> (smthg. like '-ljpeg -lpng -lz -lSM ...', I guess you have to play with
> the order and may be include some libs multiple times, just iterate
> through the link command and put -lxx one after another as long as there
> are messages about undefined symbols which are defined in libxx :)
Ah, quite right. Very cool. Thanks!
This means that admin/acinclude.m4.in needs to change. I'll do some
testing before committing, but it looks like LIB_QT needs an added
$(LIBJPEG) and $(LIBSM) instead of $(X_PRE_LIBS)
--
Kurt Granroth | http://www.granroth.org
KDE Developer/Evangelist | SuSE Labs Open Source Developer
granroth@kde.org | granroth@suse.com
KDE -- Putting a Friendly Face on Unix
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic