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

Re: Help me fix a bug!



On Sat, Mar 14, 1998 at 02:05:23PM +0100, Ole J. Tetlie wrote:
> OK. It is statically linked, but how do I make it dynamically linked?
> I tried adding -lc to the Makefile, but to no avail:

You did it right.
> gcc -fPIC -o verbose.o -c -s -Wall -O2 -I. verbose.c
> gcc -shared -Wl,-soname,libshhmsg.so.1 -o libshhmsg.so.1.3.3 vars.o streams.o progname.o errno.o error.o fatal.o message.o verbose.o -lc

However,
> [olet@apollo] ~/debian/shhmsg/shhmsg-1.3.3> ldd libshhmsg.so.1.3.3
>         statically linked

this isn't the right test. ldd's search behaviour is quite peculiar: the ldd
you did is on the installed library. If you do ldd ./libshhmsg.so.1.3.1
                                                   ^^
you'll see that the library you've now built has the dependency information.

HTH,
Ray
-- 
Cyberspace, a final frontier. These are the voyages of my messages, 
on a lightspeed mission to explore strange new systems and to boldly go
where no data has gone before. 


--
E-mail the word "unsubscribe" to debian-devel-request@lists.debian.org
TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to listmaster@lists.debian.org


Reply to: