How to prevent 64bit library paths being searched for 32bit binaries on amd64?

View: New views
1 Messages — Rating Filter:   Alert me  

How to prevent 64bit library paths being searched for 32bit binaries on amd64?

by Steven Hartland :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've just been trying to get a 32bit binary to work on amd64 7.0-RELEASE,
the binary had some qt4 dependencies so I set about copying these into
/usr/local/lib32 but it seems that for some reason /usr/local/lib is
searched first which obviously causes problems when here is a 64bit
library of the same name.

/etc/rc.d/ldconfig start
shows:-
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib
 /usr/local/lib/compat/pkg /usr/local/lib/compat/pkg
 /usr/local/lib/mysql /usr/local/lib/pth
32-bit compatibility ldconfig path: /usr/lib32 /usr/local/lib32
 /usr/local/lib32/mysql /usr/local/lib32/qt4

LD_LIBARY_PATH isn't set

So the question is why is /usr/local/lib searched for a 32bit binary?

Is it possible the binary itself is setting it and if so how to I
override it?

    Regards
    Steve

================================================
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it.

In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337
or return the E.mail to postmaster@....

_______________________________________________
freebsd-hackers@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@..."