This is the mail archive of the gcc-bugs@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]

Re: gcc bug on solaris 2.7?


> 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


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