This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fwd: Static Binaries for MACOS with gfortran


Forwarding the reply...


De : Eildert Groeneveld <eildert.groeneveld@fli.bund.de>
Date : 22 octobre 2008 15:17:04 HAEC
À : FX <fxcoudert@gmail.com>
Objet : Rép : Static Binaries for MACOS with gfortran

Dear Francois


you have made my day! I had missed out on the libgfortranbegin.a after that
had been added, everything went just fine..and the binary even runs on a Mac
without gfortran installed :)


Thanx again

Eildert



On Wednesday 22 October 2008, you wrote:
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".


--
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
===================================================



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]