[toolchain-builder] configs/common: enable Fortran support
diff mbox series

Message ID 20190611132605.26354-1-romain.naour@smile.fr
State New
Headers show
Series
  • [toolchain-builder] configs/common: enable Fortran support
Related show

Commit Message

Romain Naour June 11, 2019, 1:26 p.m. UTC
Fortran depends on wchar only for architectures requiring libquadmath.

Since uclibc toolchain built by toolchain-builder enable locales (so wchar
is automatically selected), it's safe to enable unconditionally Fortran
support for all toolchains.

Signed-off-by: Romain Naour <romain.naour@smile.fr>
---
 build.sh              | 5 +++++
 configs/common.config | 1 +
 2 files changed, 6 insertions(+)

Patch
diff mbox series

diff --git a/build.sh b/build.sh
index 5b28b88..835d714 100755
--- a/build.sh
+++ b/build.sh
@@ -309,6 +309,11 @@  function make_br_fragment {
     else
         echo "# BR2_TOOLCHAIN_EXTERNAL_CXX is not set" >> ${fragment_file}
     fi
+    if grep "BR2_TOOLCHAIN_BUILDROOT_FORTRAN=y" ${configfile} > /dev/null 2>&1; then
+        echo "BR2_TOOLCHAIN_EXTERNAL_FORTRAN=y" >> ${fragment_file}
+    else
+        echo "# BR2_TOOLCHAIN_EXTERNAL_FORTRAN is not set" >> ${fragment_file}
+    fi
     if grep "BR2_TOOLCHAIN_HAS_SSP=y" ${configfile} > /dev/null 2>&1; then
         echo "BR2_TOOLCHAIN_EXTERNAL_HAS_SSP=y" >> ${fragment_file}
     else
diff --git a/configs/common.config b/configs/common.config
index 7f728ad..85ae490 100644
--- a/configs/common.config
+++ b/configs/common.config
@@ -1,6 +1,7 @@ 
 BR2_WGET="wget --passive-ftp -nd -t 3 --no-check-certificate"
 BR2_GNU_MIRROR="http://ftp.gnu.org/pub/gnu"
 BR2_TOOLCHAIN_BUILDROOT_CXX=y
+BR2_TOOLCHAIN_BUILDROOT_FORTRAN=y
 BR2_INIT_NONE=y
 # BR2_PACKAGE_BUSYBOX is not set
 # BR2_TARGET_ROOTFS_TAR is not set