Static Binaries for MACOS with gfortran
FX
fxcoudert@gmail.com
Wed Oct 22 12:47:00 GMT 2008
Dear Eildert,
As I have "retired" from the gfortran development team, I redirect you
to the gfortran mailing-list: many more readers means many more answers!
The short answer to your question, as far as I know, is that -static-
libgfortran only works on platforms using the GNU linker. In
particular, it doesn't work with Apple's dyld. The way to go for you
is to "manually" link in the static version of libgfortran: instead of
running "gfortran ..." as a linking command, try "gcc ... /path/to/
libgfortranbegin.a /path/to/libgfortran.a -lm".
Regards,
FX
Le 22 oct. 08 à 14:33, Eildert Groeneveld a écrit :
> Dear François-Xavier
>
> as part of my research I am creating binaries for a statistics
> package on a
> number of platforms. Meanwhile I have moved completely to gfortran
> which
> already makes life much easier. Only on the MACOS I am still having
> this
> "make -static-libgfortran work on darwin." problem that you have been
> discussing in the fora.
>
> So my problem is simply tha I want the create a binary that then can
> be moved
> elsewhere for use and execution.
>
> I have tried a number of options but am not getting anywhere.
>
> Are you perhaps aware of a solution to this issue?
>
> Thanks for your support
>
> Eildert
> --
> Eildert Groeneveld
> ===================================================
> Institute of Farm Animal Genetics
> Mariensee 31535 Neustadt Germany
> Tel : (+49)(0)5034 871155 Fax : (+49)(0)5034 871239
> e-mail: eildert.groeneveld@fli.bund.de http://vce.tzv.fal.de/index.pl
> http://www.tzv.fal.de/~eg/ http://apiis.tzv.fal.de/index.pl
> ===================================================
More information about the Fortran
mailing list