This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
RE: Trying the cvs version of glibc
- To: libc-alpha@sourceware.cygnus.com
- Subject: RE: Trying the cvs version of glibc
- From: Jonas Utterström <jonas.utterstrom@vittran.norrnod.se>
- Date: Wed, 07 Jul 1999 19:21:43 +0200 (CEST)
- Organization: Hemma på Vittervägen
- Reply-To: jonas.utterstrom@vittran.norrnod.se
On 06-Jul-99 Jonas Utterström wrote:
>
> /usr/lib/gcc-lib/i486-linux/egcs-2.91.66/collect2 -m elf_i386
> -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o
> /usr/lib/gcc-lib/i486-linux/egcs-2.91.66/crtbegin.o
> -L/home/jonas/cvs-glibc/lib -L/usr/lib/gcc-lib/i486-linux/egcs-2.91.66
> --dynamic-linker=/home/jonas/cvs-glibc/ld-linux.so.2
> --rpath=/home/jonas/cvs-glibc/lib /tmp/ccm5Rsk7.o -lgcc -lc -lgcc
> /usr/lib/gcc-lib/i486-linux/egcs-2.91.66/crtend.o /usr/lib/crtn.o
>
> Those /usr/lib/crt*.o should have been /home/jonas/cvs-glibc/lib. (I guess)
>
Problem solved, (Replied just to get this into the archives)
As I wrote in my previous e-mail, something was fishy with my parameters to gcc.
I should have used the -nostartfiles switch and then manually linked crt1.o,
crti.o and crtn.o from cvs-glibc.
gcc ${HOME}/cvs-glibc/lib/crt1.o ${HOME}/cvs-glibc/lib/crti.o -nostartfiles
-Wl,--dynamic-linker=${HOME}/cvs-glibc/lib/ld-linux.so.2
-Wl,--rpath=${HOME}/cvs-glibc/lib -I${HOME}/cvs-glibc/include hello.c
-L${HOME}/cvs-glibc/lib ${HOME}/cvs-glibc/lib/crtn.o
/Jonas U
------------------------------------------------------
Jonas Utterstrom <jonas.utterstrom@vittran.norrnod.se>