This is the mail archive of the gcc-help@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: Working with gcc


On May  9, 2001, "Alex Arulanthu" <alex@cs.wustl.edu> wrote:

> I am trying out the new gcc 2.95.3.  I installed on Solaris 2.8.
> gcc is throwing out a lots of errors during linking..

It's not GCC, it's the linker.  The Solaris linker will complain when
creating shared-libraries out of non-PIC when given the option -ztext,
which GCC passes to it when asked to create a shared library unless
the -mimpure-text switch is given to GCC.  I.e., either use PIC
objects only, or use -mimpure-text.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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