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

Add multiarch library paths to DEFAULT_LIBRARY_PATH in Dpkg::Shlibs?

Hi, all.

Now, /usr/share/perl5/Dpkg/Shlibs.pm defines default library search path as:
use constant DEFAULT_LIBRARY_PATH =>
    qw(/lib /usr/lib /lib32 /usr/lib32 /lib64 /usr/lib64
       /emul/ia32-linux/lib /emul/ia32-linux/usr/lib);

and adds multiarch dirs only for crosscompiling:

if ($crossprefix) {
    push @crosslibrarypaths, "/lib/$multiarch", "/usr/lib/$multiarch",
            "/$crossprefix/lib", "/usr/$crossprefix/lib",
            "/$crossprefix/lib32", "/usr/$crossprefix/lib32",
            "/$crossprefix/lib64", "/usr/$crossprefix/lib64";

Multiarch dirs are added below by parsing /etc/ld.so.conf:
parse_ldso_conf("/etc/ld.so.conf") if -e "/etc/ld.so.conf";

I think it would be better to add multiarch dirs to DEFAULT_LIBRARY_PATH,
and put them in first positions.

Reply to: