bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnu-libiconv] Cross Compilation for uclinux


From: Bruno Haible
Subject: Re: [bug-gnu-libiconv] Cross Compilation for uclinux
Date: Sat, 24 Sep 2011 22:04:43 +0200
User-agent: KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; )

Hi,

moganesh wrote:
> I am working on a project on ucLinux which requires libiconv. I want to
> cross-compile this library as static library. But it always fail.
> 
> this is the command I use:
> 
> ./configure --enable-static --disable-shared --build=i686-pc-linux-gnu
> --host=nios2-unknown-linux-gnu
> --prefix=/home/captain/Programs/nios2-linux/uClinux-dist/staging/usr
> LDFLAGS="-Wl,-elf2flt" CC="nios2-linux-uclibc-gcc"
> 
> The result of configure is always like this:
> 
> 
> checking whether the nios2-linux-uclibc-gcc linker
> (/opt/nios2/usr/bin/nios2-linux-uclibc-ld) supports shared libraries... yes
> checking whether -lc should be explicitly linked in... no
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... no
> checking whether the -Werror option is usable... yes

That is the output from the preload/ directory. In the main directory the output
was
  checking whether to build shared libraries... no
  checking whether to build static libraries... yes

Don't be confused by the configure output. Just do a "make; make install"
and it will install what you specified.

Bruno
-- 
In memoriam Sara Harpman 
<http://www.genealogieonline.nl/en/stamboom-harpman/I399.php>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]