linux-l: ldd Ungereimtheit

Michael Wiedmann Michael.Wiedmann at detewe.de
Mo Jul 13 09:28:15 CEST 1998


At 00:55 13.07.98 +0200, Peter J. Weyers wrote:

>> - Gelinkt im Makefile wird gegen "libxxx.so".
>
>Wie? Mit -lxxx ?

Nein, sondern durch Angabe von absoluten Pfadangaben.
(Warum werden einige fragen: weil ich keinen anderen Weg gefunden habe,
gegen bestimmte Libs statsisch und andere dynamisch zu linken.)

Also ungefaehr so:

LFLAGS = /path1/to/shared.lib.so /path2/to/static.lib.a
[...]
$(TARGET): $(OBJECTS)
        $(CC) $(OBJECTS) $(LFLAGS) -o $(TARGET)

------------------------------------------------------------------------
                  Avoid the Hell of Gates - use Linux
 PGP public key from key server or send mail with Subject: send-pgp-key
------------------------------------------------------------------------





Mehr Informationen über die Mailingliste linux-l