@@ -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
@@ -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
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(+)