The other day I put some makefile magic into lib/Module.mk which assumed /usr/lib and /lib were last. I'll rework it. Jean Delvare wrote: >>my man page for ld.so clearly says that /usr/lib and /lib are last. >>You can also see this from the output of 'ldconfig -v'. >> >>Is yours different? > > > arrakis:~> /sbin/ldconfig -Nv | grep ^/ | sed -e 's/:$//' > /lib > /usr/lib > /opt/xpdf-1/lib > /usr/local/lib > /usr/X11R6/lib > /usr/i386-slackware-linux/lib > /opt/gnome/lib > /usr/openwin/lib > /opt/kde/lib > > So I have /lib and /usr/lib first. Here follows my /etc/ld.so.conf for > reference: > > /opt/xpdf-1/lib > /usr/local/lib > /usr/X11R6/lib > /usr/i386-slackware-linux/lib > /opt/gnome/lib > /usr/openwin/lib > /opt/kde/lib > > I guess the order depends on the system and we can't assume anything. > Some shell/perl magic could let us know if more than one library is > present and which one will be used. This is something I can do if you > tell me where to do it and what it should do. >