Skip to contentSkip to conversation

local.conf.sample.extended: Add an example of how to enable fortran

PATCH New Richard Purdie 1 participant 1 message Sep 5, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 local.conf.sample.extended: Add an example of how to enable fortran

Add an example of how to enable FORTRAN from local.conf. Make it clear this is not officially supported.

[YOCTO #5091]

meta/conf/local.conf.sample.extended +8 -0
@@ -229,3 +229,11 @@
 #groupmod -g 1020 developers; \
 #usermod -s /bin/sh tester; \
 #"
+
+# Enabling FORTRAN
+# Note this is not officially supported and is just illustrated here to
+# show an example of how it can be done
+FORTRAN_forcevariable = ",fortran"
+RUNTIMETARGET_append_pn-gcc-runtime = " libquadmath libgfortran"
+export BUILD_FC = "${CCACHE}${BUILD_PREFIX}gfortran ${BUILD_CC_ARCH}"
+export FC = "${CCACHE}${HOST_PREFIX}gfortran ${HOST_CC_ARCH}"