Linker problems with clang /usr/local/lib

From: Johannes Lundberg <johalun0_at_gmail.com>
Date: Sun, 22 Jan 2017 12:29:04 -0800
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.

This is a problem when building Rust crates with Cargo which does not care
about env variables like LDFLAGS. I can however override the linker and use
'gcc' which solves the problem but I assume it should be possible to get
clang (cc) to look in /usr/local/lib as well.

Anyone got any ideas?
Received on Sun Jan 22 2017 - 19:29:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:09 UTC