I found an other bug in gfortran now for the Linux distribution only.
You must be able to link the gfortran libraries static or linked.
For the linked *.so no problem
For the static *.a it did not work and at the compilation time.
To force the linker to compile the gfortran libraries static and not linked, you change the name of the *.so libraries and do not touch the *.a libraries. The -static does not work because now, all the libraries must be static, and it did not work with libX11.a, the same problem so I use this patch : rename the *.so gfortran files such as to only have static gfortran files and the others linked. My program is a mix gfortran and C. You can load the files on my site if necessary : http://perso.wanadoo.fr/claude.gerdy on :
download->Linux->new->install.zip
If I use the Intel compiler (freeware with Linux) Fortran95 ifort and C icc with the command -i-static which make an exec files with the intel libraries only static it works but not with -static because problem with libX11.a. I have not this problem with Windows because all the libraries are static with no choice. So if you distribute exec files, they must be statically linked with the fortran libraries, with Linux I use the Intel compiler on my site and gfortran with Windows. All my readers have not the gfortran libraries on there Linux system, so static link is vital for my site.


Reply via email to