public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
* (no subject)
@ 2021-03-19 20:22 Daniel Feenberg
  2021-03-19 20:49 ` gfortran static linking under OS X (was: Re: ) Tobias Burnus
  0 siblings, 1 reply; 8+ messages in thread
From: Daniel Feenberg @ 2021-03-19 20:22 UTC (permalink / raw)
  To: fortran

Is there a way to make a statically linked binary with fortran in OS
X? For much of the past year I have been using:

     gfortran taxsim.for -static-libgfortran -static-libgcc

but since January I only get the error message;

     ld: library not found for -lm.
     collect2: error: ld returned 1 exit status?

This is OS X 11,2,3 Big Sur and fortran version 6.3.0. I need static
linking because my users are not developers and do not have Xcode or
gcc installed. This is free software.  I have seen postings from 2015
suggesting that I rename libquadmath.0.dylib, which I did try but
which did not help.

Of course I have no need for lquad precision variables, which I
understand is the source of the problem.

Daniel Feenberg
NBER

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-03-22 22:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-19 20:22 Daniel Feenberg
2021-03-19 20:49 ` gfortran static linking under OS X (was: Re: ) Tobias Burnus
2021-03-19 21:06   ` Iain Sandoe
2021-03-19 22:11   ` Daniel Feenberg
2021-03-19 22:39     ` Iain Sandoe
2021-03-20 20:47       ` Daniel Feenberg
2021-03-20 21:07         ` Iain Sandoe
2021-03-22 22:20           ` Daniel Feenberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).