[Top][All Lists]
[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: |
Sun, 25 Sep 2011 11:22:29 +0200 |
User-agent: |
KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; ) |
MOGANESHWARAN A/L RAJASEGARAN wrote:
> the "make" command produce the following error:
>
> libtool: link: nios2-linux-uclibc-gcc -shared -fPIC -DPIC
> objects/.libs/iconv.o objects/.libs/localcharset.o
> objects/.libs/relocatable.o -Wl,-elf2flt -O2 -Wl,-soname
> -Wl,libiconv.so.0 -o .libs/libiconv.so.0.0.0
> nios2-linux-uclibc-gcc: unrecognized option `-shared'
> .libs/libiconv.so.0.0.0.elf2flt(.text+0x10): In function `_start':
> : undefined reference to `main'
> .libs/libiconv.so.0.0.0.elf2flt(.text+0x14): In function `_start':
> : undefined reference to `main'
> collect2: ld returned 1 exit status
> make[1]: *** [preloadable_libiconv.so] Error 1
> make[1]: Leaving directory `/home/captain/Desktop/libiconv-1.14/preload'
> make: *** [all] Error 2
If your platform cannot build shared libraries (what a strange thing for
an embedded system, I thought embedded systems had little RAM, so shared
libraries are even more important for embedded systems than for desktop
machines?), you can skip this directory by doing
$ make -k
$ make -k install
Bruno
--
In memoriam Safia Ahmed-jan <http://en.wikipedia.org/wiki/Safia_Ahmed-jan>