Re: gfortran static linking under OS X (was: Re: )

2021-03-20 Thread Daniel Feenberg via Fortran
On 3/19/21, Iain Sandoe wrote: >> On Fri, 19 Mar 2021, Tobias Burnus wrote: > > you should be able to work around this without changing the compiler or > rebuilding it, > > find > > /path/to/compiler/install/lib/libgfortran.spec > > make a copy of that (for backup only) > > the file contains som

[no subject]

2021-03-19 Thread Daniel Feenberg via 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