On Mon, Oct 11, 2004 at 02:25:30PM -0400, Joey Hess wrote: > I do not like this approach, because it makes the package build > dependant on the contents of ld.so.conf. Since various packages modify > that file, there's no canonical list of what directories are used, and > changing behavior based on the contents of the file is asking for > trouble. The other alternative, noted in #205142, of hard-coding the > list of directories from policy into debhelper, is better, but still not > appealing.
Another approach is to find out from ldconfig which directories it is searching - you can tell it to use a different file instead of /etc/ld.so.conf (e.g. /dev/null in this example) if you don't want to change behaviour based on the contents of that file (and files it includes): $ /sbin/ldconfig -N -X -v -f /dev/null 2>/dev/null|sed 's,^\(/.*\):\( (.*)\)\?$,\1,p;d' /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu /lib /usr/lib Cheers, Olly