]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgfortran: Use the libtool macro to determine libm availability.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 28 Mar 2021 14:39:33 +0000 (15:39 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Fri, 27 Aug 2021 15:50:19 +0000 (16:50 +0100)
commit9b025925eceaf207e3d0104cddace753ac6dabd5
tree229425bf8564f2898e489f8112f91d8e473ea29d
parente42ea63bcc12e819c3e1066974a691988e86b724
libgfortran: Use the libtool macro to determine libm availability.

We recently had a report of build failure against a Darwin branch on
the latest OS release.  This was because (temporarily) the symlink
from libm.dylib => libSystem.dylib had been removed/omitted.

libm is not needed on Darwin, and should not be added unconditionally
even if that is (mostly) harmless since it is a symlink to libc.

There could be cases where the addition was not completely harmless
because the presentation of the symlink would cause the symbols exposed
in libSystem to be considered ahead of ones presented in convenience
libraries.

libgfortran/ChangeLog:

* Makefile.am: Use configured libm availability.
* Makefile.in: Regenerate.
* configure: Regenerate.
* configure.ac: Use libtool macro to find libm availability.
* libgfortran.spec.in: Use configured libm availability.
libgfortran/Makefile.am
libgfortran/Makefile.in
libgfortran/configure
libgfortran/configure.ac
libgfortran/libgfortran.spec.in