Using gcc on an embedded system, with its own prefix and lib dirs.
Ian Lance Taylor
iant@google.com
Thu Mar 27 07:54:00 GMT 2014
On Wed, Mar 26, 2014 at 10:43 AM, Lance Fredrickson
<lancethepants@gmail.com> wrote:
>
> Does gcc have hard-coded somewhere to look for ld.so.conf in /etc? If I
> could define my own location for gcc, for example /mmc/etc/ld.so.conf, then
> that would work perfect for me. Would this be possible?
GCC proper does not look at ld.so.conf at all, as far as I know.
The GNU linker does look at ld.so.conf in some cases. You can change
that by configuring the linker with a --sysroot option.
The GNU C library does, of course, look at /etc/ld.so.conf at run
time.
Ian
More information about the Gcc-help
mailing list