non standard libs

Nicholas Mc Guire der.herr@hofr.at
Sun Dec 24 06:02:00 GMT 2000


Hi !
 
 I wanted to compile with a old set of libs, so I donwloaded the libs from a
 system they were on and put them in a directory /glibc-2.0.7/ and then tried
 to compile a program for this old system by issuing

    gcc -nostdlib -L/glibc-2.0.7/ -lc -o hello hello.c

 which compiles ok , but does not use the glibc-2.0.7 libs but the normal system
 libs in /lib (blibc-2.1.3) and thus segfaults on the old system.

 could someone point out to me whats wrong with the compiler flags I was using ?
 my understanding was that with -nostdlib the system lisb serach path is not 
 used at all and with the -L/glibc-2.0.7/ and -lc it should actually find the
 glibc-2.0.7 libc . 

any hint or links to docs appreciated !

thx !
hofrat


More information about the Gcc-help mailing list