gcc bug on solaris 2.7?
Martin v. Loewis
martin@mira.isdn.cs.tu-berlin.de
Fri Aug 13 00:45:00 GMT 1999
> fire:/homes/balay/junk/bug>gcc -c foo.c
[...]
> fire:/homes/balay/junk/bug>ld -G foo.o -o libfoo.so
> fire:/homes/balay/junk/bug>gcc main.c -L. -lfoo -R.
Thanks for your bug report. That may be a bug in your build procedure,
though: Please use -fPIC when compiling objects for use in a shared
library, and use "gcc -shared" to build the shared library, instead of
"ld -G". You'll find these options documented in the info pages.
Regards,
Martin
More information about the Gcc-bugs
mailing list