ywangd / mspms2

Automatically exported from code.google.com/p/mspms2
0 stars 1 forks source link

Compile the FORTRAN 90 code to a static library file #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The FORTRAN 90 code should be compiled into a static library file. So that
the compilation of the C code does not need to include the libgfortran.a
library. Thus avoid the trouble from the gfortran compiler.

Original issue reported on code.google.com by ywa...@gmail.com on 28 Nov 2007 at 11:05

GoogleCodeExporter commented 9 years ago
See
[http://gcc.gnu.org/ml/fortran/2006-06/msg00129.html gfortran in a static 
library]

In general, there may be 2 ways to do this:
1. Provide libgfortran.a and libgcc.a along with the code.
2. Configure the compiler using "--disable-shared" to build only static library.

Original comment by ywa...@gmail.com on 29 Nov 2007 at 12:10

GoogleCodeExporter commented 9 years ago
We decide to not make the static library since we can build the final 
executable file
statically for distribution.
Or we can provide libgfortran.a along with the source.

Original comment by ywa...@gmail.com on 30 Nov 2007 at 7:26