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) %(libo

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

2021-03-20 Thread Iain Sandoe via Fortran
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) %(liborig) change the last line line to : *lib: %

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

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

2021-03-19 Thread Iain Sandoe via Fortran
Daniel Feenberg wrote: On Fri, 19 Mar 2021, Tobias Burnus wrote: This seems to be a OS X issue ? and I have no idea about OS X, but I found the following: https://github.com/fxcoudert/gfortran-for-macOS/issues/12 It is certainly an OS X issue. Actually, it’s a gfortran issue. The

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

2021-03-19 Thread Daniel Feenberg
On Fri, 19 Mar 2021, Tobias Burnus wrote: Hi, I am not sure whether it helps, but I want to point out that libm is the math library which is on Linux usually GLIBC and I assume on OS X it is provided by the OS vendor. Additionally, that libm is linked dynamically. This seems to be a OS

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

2021-03-19 Thread Iain Sandoe via Fortran
Hi Daniel, Tobias Burnus wrote: I am not sure whether it helps, but I want to point out that libm is the math library which is on Linux usually GLIBC and I assume on OS X it is provided by the OS vendor. actually part of libSystem (but, yes, provided by the vendor) On 19.03.21 21:22, D

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

2021-03-19 Thread Tobias Burnus
Hi, I am not sure whether it helps, but I want to point out that libm is the math library which is on Linux usually GLIBC and I assume on OS X it is provided by the OS vendor. Additionally, that libm is linked dynamically. This seems to be a OS X issue – and I have no idea about OS X, but I