Hi all, I'm using a buildroot toolchain built with uClibc to statically link a bunch of programs, but I believe that the uClibc automatically built by buildroot may be missing some features that I need. So, what I'm trying to do is use the buildroot toolchain but have all my object files statically linked against a custom uClibc install that I've configured and installed myself. Is this possilble? I've tried fidgeting with LIBRARY_PATH and -L, all to no avail. Here's the error message I'm getting:
[er...@basmati test]$ LIBRARY_PATH="/home/ersin/vorpo/toolchain/usr/lib:$LIBRARY_PATH" i386-linux-gcc -static -L/home/ersin/vorpo/toolchain/usr/lib -I/home/ersin/vorpo/toolchain/usr/include ./test1.c /home/ersin/vorpo/build/buildroot-2010.02/output/staging/usr/lib/crt1.o: In function `_start': (.text+0x1d): undefined reference to `__uClibc_main' collect2: ld returned 1 exit status [er...@basmati test]$ ...where /home/ersin/vorpo/toolchain/usr/lib has my custom-built uClibc static libraries. I'll spare you the gory details, but when I run i386-linux-gcc with -v, I notice that my setting the LIBRARY_PATH variable has no effect whatsoever on LIBRARY_PATH, which is not the case when I run the same line using my distro's stock gcc. I suspect that I'm missing something obvious... Thanks, Ersin -- ========= Ersin Y. Akinci -- http://www.ersinakinci.com _______________________________________________ uClibc mailing list [email protected] http://lists.busybox.net/mailman/listinfo/uclibc
