diff options
author | Samuel Martin <s.martin49@gmail.com> | 2016-07-03 15:47:39 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-07-03 16:58:11 +0200 |
commit | 5077bdd939a44815976ffa36e9f30a15935aeac2 (patch) | |
tree | 90129f111de59ad8d4ecbfb3905904fe298a0aa3 /package/gcc/gcc-final/gcc-final.mk | |
parent | 7de668a1deae7d187bf2f0c30ee82e2a92ab81f8 (diff) | |
download | buildroot-5077bdd939a44815976ffa36e9f30a15935aeac2.tar.gz buildroot-5077bdd939a44815976ffa36e9f30a15935aeac2.zip |
package/gcc: fix fortran support
Fortran depends on libquadmath when available, make the buildroot
toolchain option depends on this new hidden symbol,
[Vincent: only do "HOST_GCC_FINAL_USR_LIBS += libquadmath" for i386 and
x86_64, otherwise it will fail saying "libquadmath.a: file not found"]
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/gcc/gcc-final/gcc-final.mk')
-rw-r--r-- | package/gcc/gcc-final/gcc-final.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/package/gcc/gcc-final/gcc-final.mk b/package/gcc/gcc-final/gcc-final.mk index 78ceebad05..284d34cb1e 100644 --- a/package/gcc/gcc-final/gcc-final.mk +++ b/package/gcc/gcc-final/gcc-final.mk @@ -163,6 +163,10 @@ endif ifeq ($(BR2_TOOLCHAIN_BUILDROOT_FORTRAN),y) HOST_GCC_FINAL_USR_LIBS += libgfortran +# fortran needs quadmath on x86 and x86_64 +ifeq ($(BR2_TOOLCHAIN_HAS_LIBQUADMATH),y) +HOST_GCC_FINAL_USR_LIBS += libquadmath +endif endif ifeq ($(BR2_GCC_ENABLE_OPENMP),y) |