Re: Linker problems with clang /usr/local/lib

2017-01-22 Thread Dimitry Andric
It only does so on Linux. This has always been the case, but apparently it was never noted clearly in the man page. -Dimitry > On 22 Jan 2017, at 21:57, Johannes Lundberg wrote: > > I found a way to pass various linker flags to Rust through the .cargo/config > file which is doable for now. >

Re: Linker problems with clang /usr/local/lib

2017-01-22 Thread Johannes Lundberg
I found a way to pass various linker flags to Rust through the .cargo/config file which is doable for now. However, in man pages it says that ld looks in /etc/ld.so.conf for paths.. This seem broken. While a solution, having to write wrappers sounds like a workaround that shouldn't be needed...

Re: Linker problems with clang /usr/local/lib

2017-01-22 Thread Dimitry Andric
On 22 Jan 2017, at 21:29, Johannes Lundberg wrote: > > How can I make 'cc' (/usr/bin/ld) look for libraries in /usr/local/lib > without having to specify environment or command line variables? > > I got "/usr/local/lib" in /etc/ld.so.conf and /var/run/ld-elf.so.hints. > > /sbin/ldconfig -l xxx

Linker problems with clang /usr/local/lib

2017-01-22 Thread Johannes Lundberg
Hi How can I make 'cc' (/usr/bin/ld) look for libraries in /usr/local/lib without having to specify environment or command line variables? I got "/usr/local/lib" in /etc/ld.so.conf and /var/run/ld-elf.so.hints. /sbin/ldconfig -l xxx can find library xxx in /usr/local/lib /usr/bin/ld can not. T