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

2021-03-19 Thread Daniel Feenberg
he authors of libquadm don't want users to use it in statically linked binaries, and did something to prevent that from happening. Unfortunately, it means that specialized knowledge is required to statically link gfortran programs, even if they don't use quad precision math. Dan

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

2021-03-22 Thread Daniel Feenberg
On Sat, 20 Mar 2021, Iain Sandoe wrote: Daniel Feenberg wrote: 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, %rename lib liborig *lib: -lquadmath -lm %(libgcc

[no subject]

2021-03-19 Thread Daniel Feenberg via Fortran
not help. Of course I have no need for lquad precision variables, which I understand is the source of the problem. Daniel Feenberg NBER

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

2021-03-20 Thread Daniel Feenberg via Fortran
> > change the last line line to : > > *lib: %{!static-libgfortran: -lquadmath } %{static-libgfortran: > libquadmath.a%s} %(libgcc) %(liborig) > > === > > and try your link again > Tried that, the error message is: ld: library not found for -lSystem Indeed there is no libsystem.a anywhere on the computer. Any ideas? Daniel Feenberg