[uClibc]Re: uclibc tool installation
Erik Andersen
andersen at codepoet.org
Fri Feb 1 08:35:40 UTC 2002
On Fri Feb 01, 2002 at 05:05:32PM +0900, Miles Bader wrote:
> Erik Andersen <andersen at codepoet.org> writes:
> > So, is it ldd or readelf or both that you object to. I can
> > certainly see the case for not installing readelf to the host
> > system (since the host system will surely have the full readelf
> > from binutils installed).
>
> Ah, perhaps there's a misunderstanding here -- I don't mean either of those
> things (no shared libraries on the v850!), I'm talking about the aliases
> installed by `extra/gcc-uClibc/Makefile' (where `v850' is the name of my
> architecture, and the normal cross tools use a prefix of `v850e-elf-'):
>
> gcc -> v850-uclibc-gcc
> ld -> v850-uclibc-ld
> ...
> as -> v850e-elf-as
> objcopy -> v850e-elf-objcopy
> ...
>
> These are what I don't want (but I do want the `v850-uclibc-xxx' stuff).
Any GNU cross toolchain you install will provide a "plain-names"
version of the toolchain, and a "cross-names" version. With
uClibc, I create these in seperate directories to make it easy
for people to pick whichever one they want to use.
$(PREFIX)$(DEVEL_PREFIX)/bin/
gcc
ld
etc...
$(PREFIX)$(SYSTEM_DEVEL_PREFIX)/bin/
v850-uclibc-gcc
v850-uclibc-ld
etc...
Normally, SYSTEM_DEVEL_PREFIX=$(DEVEL_PREFIX)/usr/bin so you
will (assuming DEVEL_PREFIX=/usr/v850-linux-uclibc) end up with:
$ ls /usr/v850-linux-uclibc/bin/
addr2line@ as@ cpp@ gcc@ ldd* objcopy@ ranlib@ size@ strip@
ar@ cc@ gasp@ ld@ nm@ objdump@ readelf* strings@
$ ls /usr/v850-linux-uclibc/usr/bin/
v850-uclibc-addr2line@ v850-uclibc-cpp@ v850-uclibc-ldd@ v850-uclibc-ranlib@ v850-uclibc-strip@
v850-uclibc-ar@ v850-uclibc-gasp@ v850-uclibc-nm@ v850-uclibc-readelf@
v850-uclibc-as@ v850-uclibc-gcc* v850-uclibc-objcopy@ v850-uclibc-size@
v850-uclibc-cc@ v850-uclibc-ld* v850-uclibc-objdump@ v850-uclibc-strings@
so they don't interfere with each other. Have you set
DEVEL_PREFIX = SYSTEM_DEVEL_PREFIX?
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the uClibc
mailing list