gcc: consolidate fortran options
PATCH v2 2/3 gcc: consolidate fortran options
Have BR2_TOOLCHAIN_BUILDROOT_FORTRAN select BR2_INSTALL_LIBFORTAN, allowing packages and other dependencies to generically check for fortran support with buildroot and external toolchains.
Signed-off-by Benjamin Kamath <[email protected]>
--- package/gcc/Config.in.host | 1 + package/gcc/gcc-final/gcc-final.mk | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)
package/gcc/Config.in.host +1 -0
@@ -111,6 +111,7 @@ config BR2_TOOLCHAIN_BUILDROOT_CXX config BR2_TOOLCHAIN_BUILDROOT_FORTRAN bool "Enable Fortran support" + select BR2_INSTALL_LIBFORTRAN help Enable this option if you want your toolchain to support the Fortran language and you want Fortran libraries to be
package/gcc/gcc-final/gcc-final.mk +2 -2
@@ -54,7 +54,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-$(BR2_INSTALL_LIBFORTRAN) += fortran GCC_FINAL_CROSS_LANGUAGES = $(subst $(space),$(comma),$(GCC_FINAL_CROSS_LANGUAGES-y)) HOST_GCC_FINAL_CONF_OPTS = \
@@ -152,7 +152,7 @@ ifeq ($(BR2_INSTALL_LIBSTDCPP),y) HOST_GCC_FINAL_USR_LIBS += libstdc++ endif -ifeq ($(BR2_TOOLCHAIN_BUILDROOT_FORTRAN),y) +ifeq ($(BR2_INSTALL_LIBFORTRAN),y) HOST_GCC_FINAL_USR_LIBS += libgfortran endif
Signature · 1 line
2.5.0
PATCH v2 2/3 gcc: consolidate fortran options
Hi Benjamin,
Quoted 5 lines · Benjamin Kamath
Have
BR2_TOOLCHAIN_BUILDROOT_FORTRANselectBR2_INSTALL_LIBFORTAN, allowing packages and other dependencies to generically check for fortran support with buildroot and external toolchains.Signed-off-by Benjamin Kamath <[email protected]>
I have just reposted an updated of the fortran series which includes your changes [1].
So, these patches (from May) will be marked as superseded in the Buildroot patchwork.
[1] http://lists.busybox.net/pipermail/buildroot/2016-July/165662.html
Regards,
Signature · 1 line
Samuel