This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Trying the cvs version of glibc



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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]