https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83340

            Bug ID: 83340
           Summary: Libgfortran.a (downloaded) is not PIC compiled...
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: cgw at alum dot mit.edu
  Target Milestone: ---

Trying to build a Python extension with -static-libgcc fails with 

/usr/bin/ld:
/lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../lib64/libgfortran.a(compile_options.o):
relocation R_X86_64_32 against `.rodata._gfortrani_backtrace_handler.str1.1'
can not be used when making a shared object; recompile with -fPIC

This was brought up in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35014
Note comment 1, where it is mentioned that it would make sense to offer a
PIC-compiled libgfortran.a.  The overhead of PIC is not substantial.

Please consider reopening bug 35014.

Thank you.

Reply via email to