From: Samuel Martin Date: Sun, 3 Jul 2016 13:47:46 +0000 (+0200) Subject: toolchain/toolchain-external: add lib{gfortran,quadmath} to TOOLCHAIN_EXTERNAL_LIBS X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8814d65337c4141d0e36ed13d0d7ecc881f18e9e;p=buildroot.git toolchain/toolchain-external: add lib{gfortran,quadmath} to TOOLCHAIN_EXTERNAL_LIBS Signed-off-by: Samuel Martin Signed-off-by: Vicente Olivert Riera Signed-off-by: Thomas Petazzoni --- diff --git a/toolchain/toolchain-external/toolchain-external.mk b/toolchain/toolchain-external/toolchain-external.mk index 8e64789608..e6750459e1 100644 --- a/toolchain/toolchain-external/toolchain-external.mk +++ b/toolchain/toolchain-external/toolchain-external.mk @@ -90,6 +90,14 @@ ifeq ($(BR2_INSTALL_LIBSTDCPP),y) TOOLCHAIN_EXTERNAL_LIBS += libstdc++.so.* endif +ifeq ($(BR2_TOOLCHAIN_HAS_FORTRAN),y) +TOOLCHAIN_EXTERNAL_LIBS += libgfortran.so.* +# fortran needs quadmath on x86 and x86_64 +ifeq ($(BR2_TOOLCHAIN_HAS_LIBQUADMATH),y) +TOOLCHAIN_EXTERNAL_LIBS += libquadmath.so* +endif +endif + TOOLCHAIN_EXTERNAL_LIBS += $(call qstrip,$(BR2_TOOLCHAIN_EXTRA_EXTERNAL_LIBS)) # Details about sysroot directory selection.