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

Submitted by Richard Purdie on Sept. 5, 2013, 9:14 p.m.

Details

Message ID 1378415641.32427.80.camel@ted
State Accepted
Commit 8e971a457427ad3999ff3cf4c9be3c141d6bb7be
Headers show

Commit Message

Richard Purdie Sept. 5, 2013, 9:14 p.m.
Add an example of how to enable FORTRAN from local.conf. Make
it clear this is not officially supported.

[YOCTO #5091]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

Patch hide | download patch | download mbox

--- a/meta/conf/local.conf.sample.extended
+++ b/meta/conf/local.conf.sample.extended
@@ -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}"