aboutsummaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorGravatar David Kessler <djkessler@me.com>2015-05-09 12:40:54 -0500
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-19 14:48:33 +0200
commitc00fd2845e13c55f948ec807bd1ef84fd8b4ab0a (patch)
tree838e15b577da0dc76b5d2a04720ee4e85babb5fc /package
parent61f15785032c6938a93cb8aeaf44ad33015f3ef7 (diff)
downloadbuildroot-c00fd2845e13c55f948ec807bd1ef84fd8b4ab0a.tar.gz
buildroot-c00fd2845e13c55f948ec807bd1ef84fd8b4ab0a.tar.bz2
gcc: add support for fortran
Signed-off-by: David Kessler <DJKessler@me.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package')
-rw-r--r--package/gcc/Config.in.host7
-rw-r--r--package/gcc/gcc-final/gcc-final.mk5
2 files changed, 12 insertions, 0 deletions
diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host
index bd5c13fe0a..3d64b6f678 100644
--- a/package/gcc/Config.in.host
+++ b/package/gcc/Config.in.host
@@ -117,6 +117,13 @@ config BR2_TOOLCHAIN_BUILDROOT_CXX
C++ language and you want C++ libraries to be installed on
your target system.
+config BR2_TOOLCHAIN_BUILDROOT_FORTRAN
+ bool "Enable Fortran support"
+ help
+ Enable this option if you want your toolchain to support the
+ Fortran language and you want Fortran libraries to be
+ installed on your target system.
+
config BR2_GCC_ENABLE_TLS
bool "Enable compiler tls support" if BR2_TOOLCHAIN_BUILDROOT_UCLIBC
default y
diff --git a/package/gcc/gcc-final/gcc-final.mk b/package/gcc/gcc-final/gcc-final.mk
index 16bf4eec65..86b3c78b20 100644
--- a/package/gcc/gcc-final/gcc-final.mk
+++ b/package/gcc/gcc-final/gcc-final.mk
@@ -44,6 +44,7 @@ endef
# Languages supported by the cross-compiler
GCC_FINAL_CROSS_LANGUAGES-y = c
GCC_FINAL_CROSS_LANGUAGES-$(BR2_INSTALL_LIBSTDCPP) += c++
+GCC_FINAL_CROSS_LANGUAGES-$(BR2_TOOLCHAIN_BUILDROOT_FORTRAN) += fortran
GCC_FINAL_CROSS_LANGUAGES = $(subst $(space),$(comma),$(GCC_FINAL_CROSS_LANGUAGES-y))
HOST_GCC_FINAL_CONF_OPTS = \
@@ -146,6 +147,10 @@ ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
HOST_GCC_FINAL_USR_LIBS += libstdc++
endif
+ifeq ($(BR2_TOOLCHAIN_BUILDROOT_FORTRAN),y)
+HOST_GCC_FINAL_USR_LIBS += libgfortran
+endif
+
ifeq ($(BR2_GCC_ENABLE_OPENMP),y)
HOST_GCC_FINAL_USR_LIBS += libgomp
endif