port-pmax: Shared libraries and static linking

Subject: Shared libraries and static linking
To: None <port-pmax@netbsd.org>
From: Bernhard H. Buckel <buckel@wmad95.mathematik.uni-wuerzburg.de>
List: port-pmax
Date: 02/07/1999 18:14:15
Dear mailinglist,
This is starting to drive me crazy, so please anyone answer my cry for
help (or comfort) ;-)
NetBSD's shared libs were the main reason for me to convert from
Ultrix to NetBSD, but how can I use them? No ldconfig (yes, I've read
about the missing ld.so.conf) and all my self-built binaries using X
libs are pathetically large. Check this out:
buckel@beavis:~>l `which fvwm`
-r-xr-xr-x 1 bin bin 871624 Feb 4 20:50 /usr/X11R6/bin/fvwm
Ok, this is an old fvwm which I'm used to (no package)
buckel@beavis:~>ldd `which fvwm`
/usr/X11R6/bin/fvwm:
 -lc.12 => /usr/lib/libc.so.12
 -lXpm.4 => /usr/X11R6/lib/libXpm.so.4
 -lgnumalloc.0 => /usr/lib/libgnumalloc.so.0
Wow, he linked my hand-knitted libXpm dynamically! But how about
libX11.so and friends? I _know_ it can be done:
/usr/X11R6/bin/xeyes:
 -lc.12 => /usr/lib/libc.so.12
 -lX11.6 => /usr/X11R6/lib/libX11.so.6
 -lICE.6 => /usr/X11R6/lib/libICE.so.6
 -lSM.6 => /usr/X11R6/lib/libSM.so.6
 -lXt.6 => /usr/X11R6/lib/libXt.so.6
 -lXext.6 => /usr/X11R6/lib/libXext.so.6
 -lXmu.6 => /usr/X11R6/lib/libXmu.so.6
 -lm.0 => /usr/lib/libm.so.0
 -lgnumalloc.0 => /usr/lib/libgnumalloc.so.0
So, what's the proper ritual to get binaries with dynamically linked
libs? 
And now for something completely different: Thanks for the job, NetBSD
runs rock solid and is fun!
			 Bernhard
-- 
 Unix is like a wigwam: No fences, no gates, apache inside.

AltStyle によって変換されたページ (->オリジナル) /