[uClibc]changing directories

john riehl jr at i-bucks.com
Tue May 28 03:46:38 UTC 2002


I can compile uclibc without a problem, assuming that I let all the
prefixes default (into the system directories).

However, I am trying to build the development tools into a separate
directory tree.  When I try to fiddle with any of the prefixes, I seem to
run amiss.  I appear not to understand something basic.  If I want to
change the devel_prefix to something like /home/jr/dev, do I also need to
build in gcc and other tools into that prefix?

If I set DEVEL_PREFIX = /home/jr/dev/usr/$(TARGET_ARCH)-linux-uclibc, I
blow up at the end of the make, like thus:

strip -x -R .note -R .comment ldd
../../extra/gcc-uClibc/i386-uclibc-gcc -Wall -Os -falign-functions=1
-march=i386 -mpreferred-stack-boundary=2 -malign-functions=0
-malign-jumps=0 -malign-loops=0 -fno-builtin -nostdinc  -nostdinc
-I../../include -I/usr/lib/gcc-lib/i386-redhat-linux/2.96/include -I.
-D_LIBC  -DNDEBUG  -fPIC -D_LIBC_REENTRANT --uclibc-use-build-dir -s
-DUCLIBC_TARGET_PREFIX=\"/\" \
        -DUCLIBC_DEVEL_PREFIX=\"/home/jr/dev/usr/i386-linux-uclibc\" \
        -DUCLIBC_BUILD_DIR=\"/home/jr/x/uClibc\" \
        -DUCLIBC_LDSO=\"ld-uClibc.so.0\" \
        ldd.c -o ldd.target
/home/jr/x/uClibc/lib/crt0.o: In function `_start':
/home/jr/x/uClibc/lib/crt0.o(.text+0x16): undefined reference to
`__uClibc_main'
/tmp/ccybxFsQ.o: In function `check_elf_header':
/tmp/ccybxFsQ.o(.text+0x196): undefined reference to `strncmp'
/tmp/ccybxFsQ.o: In function `search_for_named_library':
/tmp/ccybxFsQ.o(.text+0x242): undefined reference to `strdup'
/tmp/ccybxFsQ.o(.text+0x257): undefined reference to `stderr'
<more undef ref omitted>

This is an i386 config.  Other items changed in the Config file are dolfs,
has-shadow and include-rpc.


jr





More information about the uClibc mailing list