This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/24576] Fortran I/O to same unit number in main program and in a shared library
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Oct 2005 14:09:38 -0000
- Subject: [Bug libfortran/24576] Fortran I/O to same unit number in main program and in a shared library
- References: <bug-24576-11486@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from pinskia at gcc dot gnu dot org 2005-10-29 14:09 -------
Can you try the following "work around":
gfortran -fPIC -shared -Wl,-Bsymbolic -o libtest.so test.f \
-Wl,--whole-archive /usr/lib64/libgfortran.a -Wl,--no-whole-archive
This should work and if it does, then the orginal problem is really just
another manfacturing of PR 22298.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24576