This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

non standard libs



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

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