This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
non standard libs
- To: gcc-help at gcc dot gnu dot org
- Subject: non standard libs
- From: Nicholas Mc Guire <der dot herr at hofr dot at>
- Date: Sun, 24 Dec 2000 07:02:18 -0700 (MST)
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