Re: Building PIC fortran libraries?
Randolph Chung writes:
> > > The fortrain library libg2c is built as a non-PIC archive in the default
> > > gcc package (at least it was on ia64). On some architectures, linking
> > > non-PIC code into PIC shared objects is not allowed (ia64, hppa,
> > > mips{,el}, etc). This causes applications that try to build fortrain
> > > shared objects (pdl for example) to fail.
> > >
> > > Would it be possible to build libg2c as a PIC library?
> >
> > see #104250. But this is another reason. I'll backport it, if it's
> > in 3.1 ;)
>
> FYI I've applied the attached patch to gcc-2.96 for IA64. It is a rather
> simple-minded brute force way for us to get things like gimp to build :)
hmm, it's easy to build a libg2c-pic.a library. So I will do this
instead of building the standard library with pic. Building a shared
library would introduce a incompatibility to other distros.
Reply to: