gcc: Allow fortran to build successfully in 4.8
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Dec 2013 00:48:30 +0000 (00:48 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Dec 2013 14:24:43 +0000 (14:24 +0000)
commitdbb50000024372131f17800c05d9a8034a08b222
treed835b8d36c46fec1d81e2fb4223640b350af1d95
parent6724df7a79092624023df41a8b81a6c5a09520ae
gcc: Allow fortran to build successfully in 4.8

gcc 4.8 fortran presents some challenges:

* libquadmath headers need to be in the libexec include dir. It turns out
  to be easiest just to manually do this.
* libgfortran configure needs libquadmath to be compiled. This means
  a separate recipe is needed (the alternative is gross hacks)
* the libtool uses to link libgfortran doesn't have our improved rpath
  handling and puts bogus RPATHS into the libraries. We can avoid this
  by tweaking libtool with sed.

This patch resolves those issues. Any user of fortran does need to DEPEND
on libgfortran in order to trigger it to build but this shouldn't be a major
issue.

(From OE-Core rev: a5e7ee5770b9e0cf719c573efffd874440f74289)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-cross.inc
meta/recipes-devtools/gcc/gcc-runtime.inc
meta/recipes-devtools/gcc/libgfortran.inc [new file with mode: 0644]
meta/recipes-devtools/gcc/libgfortran_4.8.bb [new file with mode: 0644]