[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Programm wird teilweise statisch gelinkt - warum?



Frank Küster <frank@kuesterei.ch> wrote:
> Ich habe das neulich hier angesprochene Programm molmol
> (http://www.mol.biol.ethz.ch/wuthrich/software/molmol/) unter
> kompiliert, jetzt überlege ich ein Paket zu bauen. Es läuft auch, macht
> auch brav seinen Output in tiff, jpeg und png-Dateien. Aber laut ldd ist
> das Binary nicht gegen die entsprechenden Bibliotheken (libtiff etc)
> gelinkt, sondern nur gegen die xlibs, xlibmesa, libmotif und libc.

> Offenbar wurden die Output-Bibliotheken statisch gelinkt - aber woher
> kann das kommen?
[...]

Vermutlich weil es so konfiguriert ist:
> IMGLIB  = $(DEB_LIBDIR)/libtiff.a $(DEB_LIBDIR)/libjpeg.a \
>          $(DEB_LIBDIR)/libpng.a $(DEB_LIBDIR)/libz.a

.a sind statische Bibliotheken, du willst hier wohl etwas wie
IMGLIB  = -ltiff -ljpeg -lpng -lz
haben.

Cc an dich weil die Liste gerade schnarchlangsam ist.
           cu andreas



Reply to: