Cross-compiling libiconv for uclinux


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Cross-compiling libiconv for uclinux
# 1  
Old 09-24-2011
Cross-compiling libiconv for uclinux

Hi everyone,
I want to cross-compile libiconv for uclinux to create a static library. I use the following command :
Code:
./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"

But it ends up creating shared library everytime. 
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

So anyone know how to create a static library. Any help would be appreciated. Thank you.

Last edited by pludi; 09-25-2011 at 07:05 AM..
# 2  
Old 09-26-2011
Running make would probably be a good start.
# 3  
Old 09-28-2011
I use command make -k. And after that make -k install. The preload directory not required to build the static library. Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Cross Compiling Issue of udev-151 for MIPS Little Endain Architecture

Hi All, I am trying to cross compile udev-151 for MIPS little endian architecture. I am configuring like this: ./configure --prefix=$PWD/sree --host=mips-linux-gnu configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then... (3 Replies)
Discussion started by: bsreeram
3 Replies

2. Solaris

Which version of "libiconv" is libiconv.so.2 in?

Hi All, I am getting this in a compile error: >gcc 1.c ld.so.1: gcc: fatal: libiconv.so.2: open failed: No such file or directory Killed I know this lib is in libiconv, but NONE of the below ones have that particular version in it: Does anyonw know exatly where it is at? maybe 1.7? 1.6?... (0 Replies)
Discussion started by: steve701
0 Replies

3. Linux

Help Cross compiling a kernel for an HP Jornada 728

Hello, I just bought an old Jornada 728 and, as you may know, it comes with Windows CE 3.0. I do not use Windows, so i wanted to create my own linux system for the Jornada. I know there are projects like Jlime, Familiar Linux, 720 Degrees, etc. But i want something based on the distribution i... (1 Reply)
Discussion started by: semash!
1 Replies

4. Programming

Cross compiling under Windows for Linux

I have two headless servers I am writing code for, and a Windows box networked with them. I want to compile my code within an IDE on the Windows box (eclipse most likely) and run the compiled binarys on the Linux boxes. Will this work? Using Cygwin (or MinGW)? Thoughts? Cheers, Ian (8 Replies)
Discussion started by: IanVaughan
8 Replies
Login or Register to Ask a Question