[uClibc]gcc3.2 toolchain and shared libs

Erik Andersen andersen at codepoet.org
Tue Sep 24 14:41:08 UTC 2002


On Wed Sep 25, 2002 at 02:07:28AM +1200, Alex King wrote:
> I downloaded gcc-3.2-uclibc-20020916.src.tar.bz2 and compiled a
> toolchain with it, but I have two problems.
> 
> Firstly, trying to compile gmp 4.1, during the configure stage I get:
> 
> configure:7742: checking whether the gcc linker
> (/home/alex/src/gcc-3.2/toolchain/usr/i386-linux/bin/ld) supports shared
> libraries
> configure:8526: result: no

Instead of using 'ld', try setting your PATH properly and using
/home/alex/src/gcc-3.2/toolchain/bin/i386-uclibc-ld and friends
instead.  Using 'ld' and 'gcc' can cause the toolchain to
interact with your host system's toolchain, so using the
i386-uclibc-gcc names is generally a good idea.

> and:
> 
> configure:9677: checking if libtool supports shared libraries
> configure:9679: result: no
> 
> but I want to use shared libraries :(
> 
> I have successfully compiled shared libraries in the past with the
> wrapper...
> 
> Secondly, I don't really understand the whole process,  I am in need of
> some basic documentation (I hope I haven't missed it somewhere, I have
> looked)
> 
> How do i use the toolchain I have created?  I guess it is using:
> 
> export PATH=/home/alex/src/gcc-3.2/toolchain/usr/bin/:$PATH

Try this:

export PATH=/home/alex/src/gcc-3.2/toolchain/bin/:$PATH
export CC=i386-uclibc-gcc

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list