Trying to build libgfortran.a with -fPIC
Toon Moene
toon@moene.org
Tue Dec 18 14:50:00 GMT 2018
This is probably better asked on the GNU Fortran mailing list (cc'd).
On 12/18/18 11:16 AM, Ricardo Telichevesky wrote:
> Hello,
>
> Â Â Â Can't find anywhere how to do it .... I've built the gcc compiler
> many times, in many different machines, and many versions ... However,
> now I need to compile it in such way that libgfortran.a and
> libquadmath.a with -fPIC flags, so that I can statically link them
> inside a shared object that contains lapack stuff ..
>
> Â Â Â The problem with distributing shared objects that rely on other
> shared objects is that quite often the target machine doesn't have the
> right libraries libgfortran.so and libquadmath.so ... and if I
> distribute them have to deal with proper search paths, etc, it is a mess...
>
>    Any suggestions? - perhaps there is a simple way to force the
> entire build of gcc to compile with -fPIC ...
>
> Â Â Â Thanks,
>
> Â Â Â Ricardo
>
>
>
--
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/
Progress of GNU Fortran: http://gcc.gnu.org/wiki/GFortran#news
More information about the Fortran
mailing list