[EMAIL PROTECTED] wrote:

> Hi,
>
> On Thu, 6 May 1999, christophe leroy wrote:
>
> > It works for me
> > gcc should look for libs in /lib
> >
> Are you cross compiling shared libraries?

Definitly yes !

>
>
> > Have you compiled glibc-2.1 ?
> Yes.
> > If yes where did you install it ?
> It is installed in the same location as my cross-compiler, in this case,
> /home/anubis9/linuxcomp.
> > I did install it in /usr/local/arm
> > Then, when you recompile egcs, tell it that libs are where they are
> > (something like --with-libs=/usr/local/arm/lib)
> >
> This won't work, because the arm-linux-gcc -v -shared output of trying to
> compile a shared library shows the following (Sorry for the messy look):
>
> Reading specs from
> /home/anubis9/linuxcomp/lib/gcc-lib/arm-linux/egcs-2.91.66/sp
> ecs
> gcc version egcs-2.91.66 19990325/philb (egcs-1.1.2 release)
>  /home/anubis9/linuxcomp/lib/gcc-lib/arm-linux/egcs-2.91.66/collect2
>  -shared -dy
>  namic-linker /lib/ld-linux.so.2 -X -m elf32arm -o libACE.so crti.o
>  /home/anubis9
>  /linuxcomp/lib/gcc-lib/arm-linux/egcs-2.91.66/crtbeginS.o
>  -L/home/anubis80/drtsc
>  p/mesteka/linux/tools/ACE_wrappers/build/linux/ace -L./
>  -L/home/anubis9/linuxcom
>  p/lib -L/home/anubis9/linuxcomp/lib/gcc-lib/arm-linux/egcs-2.91.66
>  -L/home/anubi
>  s9/linuxcomp/arm-linux/lib
>
> It looks like it is trying to access /lib/ld-linux.so.2 to compile the
> shared library.  It actually complains that it cannot find crtsi.o,
> which is in /home/anubis9/linuxcomp/lib.  But that -L comes after crti.o
> is listed.  I haven't been successful in figuring this out.:(

Your wrong. it only tells the linker that when the file will be executed,
it will use /lib/ld-linux.so.2

>
>
> > Then it should find you linux-arm glibc
> >
> > Or use -L/usr/local/arm/lib when you compile
> >
> This doesn't appear to work either, unfourtanetly.
>

Here my output.

bash# arm-linux-gcc  -v -shared t.c -o t.so
Reading specs from /usr/local/lib/gcc-lib/arm-linux/egcs-2.91.60/specs
gcc version egcs-2.91.60 19990113/philb (egcs-1.1.1 release)
 /usr/local/lib/gcc-lib/arm-linux/egcs-2.91.60/cpp -lang-c -v -undef
-D__GNUC__=2 -D__GNUC_MINOR__=91 -Dunix -Darm -Dlinux -D__ELF__ -D__unix__
-D__arm__ -D__linux__ -D__ELF__ -D__unix -D__arm -D__linux -Asystem(unix)
-Asystem(posix) -Acpu(arm) -Amachine(arm) -D__CHAR_UNSIGNED__
-D__ARM_ARCH_3__ -D__APCS_32__ t.c /tmp/ccCqj79z.i
GNU CPP version egcs-2.91.60 19990113/philb (egcs-1.1.1 release) (ARM
GNU/Linux with ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/lib/gcc-lib/arm-linux/egcs-2.91.60/include
 /usr/local/arm-linux/sys-include
 /usr/local/arm-linux/include
End of search list.
 /usr/local/lib/gcc-lib/arm-linux/egcs-2.91.60/cc1 /tmp/ccCqj79z.i -quiet
-dumpbase t.c -version -o /tmp/ccY9836j.s
GNU C version egcs-2.91.60 19990113/philb (egcs-1.1.1 release) (arm-linux)
compiled by GNU C version egcs-2.90.29 980515 (egcs-1.0.3 release).
 /usr/local/arm-linux/bin/as -o /tmp/ccksXoxu.o /tmp/ccY9836j.s
 /usr/local/lib/gcc-lib/arm-linux/egcs-2.91.60/collect2 -shared
-dynamic-linker /lib/ld-linux.so.2 -X -m elf32arm -o t.so
/usr/local/arm-linux/lib/crti.o
/usr/local/lib/gcc-lib/arm-linux/egcs-2.91.60/crtbeginS.o
-L/usr/local/lib/gcc-lib/arm-linux/egcs-2.91.60 -L/usr/local/arm-linux/lib
/tmp/ccksXoxu.o -lgcc -lc -lgcc
/usr/local/lib/gcc-lib/arm-linux/egcs-2.91.60/crtendS.o
/usr/local/arm-linux/lib/crtn.o

unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]

Reply via email to