This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc bug on solaris 2.7?
- To: balay at mcs dot anl dot gov
- Subject: Re: gcc bug on solaris 2.7?
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Fri, 13 Aug 1999 09:41:46 +0200
- CC: gcc-bugs at gcc dot gnu dot org
- References: <Pine.GSO.3.96.990812163428.18993E-101000@fire.mcs.anl.gov>
> 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