Messages in this thread |  | | | Subject | Re: [OFFTOPIC?] gcc/pgcc probs | | From | Andreas Jaeger <> | | Date | 22 Mar 1998 17:06:51 +0100 | |
>>>>> Kurt Garloff writes:
> On Sun, Mar 22, 1998 at 09:42:42AM -0000, Meino Christian Cramer wrote:
>> gcc -c HelloLinux.c -o HelloLinux
>>
>> works -- but again it was statically linked. But
>>
>> gcc -fpic -c HelloLinux.c HelloLinux.
>>
>> produces a program that segfaults.
> gcc doesn't find the dynamically lib (libc.so), that's why it uses the static
> one (libc.a). Create approriate symlinks:
> ln -s /lib/libc.so.X /usr/lib/libc.so
> (X = 5 or 6) and maybe: ln -s /usr/lib/libc.so /usr/local/lib
Beware: That's only correct for X=5 (libc5). For libc6 (glibc2)
/usr/lib/libc.so is actually a file: A linker script (see the glibc
FAQ for details).
Andreas
--
Andreas Jaeger aj@arthur.rhein-neckar.de jaeger@informatik.uni-kl.de
for pgp-key finger ajaeger@alma.student.uni-kl.de
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
|  |