When linking against libgfortran.a (using gfortran's -static-libgfortran
option)
get message about library should be recompiled with -fPIC option. 
E.g. when building a shared library:

gfortran -c -fPIC test.f90
gfortran -static-libgfortran -shared -o libtest.so test.o

>>>>>>>>>>>> CODE for test.f90 <<<<<<<<<<
 subroutine subber
 print*,'hi'
 end
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Using version 4.3.0 20080117 (experimental) on x86-64 suse9.


-- 
           Summary: Libgfortran.a (downloaded) is not PIC compiled...
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pmason at ricardo dot com
 GCC build triplet: 4.3.0 20080117 (experimental)
  GCC host triplet: suse9 x86-64
GCC target triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35014

Reply via email to