0008-fortran-cross-compile-hack.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From 904d102e3ccb93296b16ceb2e283a6ccf3c1d718 Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Fri, 29 Mar 2013 09:20:01 +0400
  4. Subject: [PATCH] fortran cross-compile hack.
  5. * Fortran would have searched for arm-angstrom-gnueabi-gfortran but would have used
  6. used gfortan. For gcc_4.2.2.bb we want to use the gfortran compiler from our cross
  7. directory.
  8. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  9. Upstream-Status: Inappropriate [embedded specific]
  10. ---
  11. libgfortran/configure | 2 +-
  12. libgfortran/configure.ac | 2 +-
  13. 2 files changed, 2 insertions(+), 2 deletions(-)
  14. diff --git a/libgfortran/configure b/libgfortran/configure
  15. index f3634389cf8..f974e874b8e 100755
  16. --- a/libgfortran/configure
  17. +++ b/libgfortran/configure
  18. @@ -13102,7 +13102,7 @@ esac
  19. # We need gfortran to compile parts of the library
  20. #AC_PROG_FC(gfortran)
  21. -FC="$GFORTRAN"
  22. +#FC="$GFORTRAN"
  23. ac_ext=${ac_fc_srcext-f}
  24. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  25. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  26. diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac
  27. index 8961e314d82..49c8221cb6b 100644
  28. --- a/libgfortran/configure.ac
  29. +++ b/libgfortran/configure.ac
  30. @@ -271,7 +271,7 @@ AC_SUBST(enable_static)
  31. # We need gfortran to compile parts of the library
  32. #AC_PROG_FC(gfortran)
  33. -FC="$GFORTRAN"
  34. +#FC="$GFORTRAN"
  35. AC_PROG_FC(gfortran)
  36. # extra LD Flags which are required for targets