[clug] Changing gcc/ld's library path

Adam Baxter voltagex at voltagex.org
Thu Apr 18 08:25:36 MDT 2013


Hi all,
I'm messing around with more embedded development - this time a
Netgear MIPS based router.

I'm trying to test my toolchain with hello world, but I'm running into
the following:

>mipsel-linux-uclibc-gcc -I/opt/brcm/mipsel_gcc-4.3.3_uclibc-0.9.30.1/usr/include/ hello.c -B/opt/brcm/mipsel_gcc-4.3.3_uclibc-0.9.30.1/usr/lib

/opt/brcm/mipsel_gcc-4.3.3_uclibc-0.9.30.1/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/../../../../mipsel-linux-uclibc/bin/ld:
cannot find /lib/libc.so.0
collect2: ld returned 1 exit status

I don't want the mipsel gcc to try to use my x64 /lib so what am I
missing to get it to search in the right place?

Thanks,
Adam


More information about the linux mailing list