summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/gcc/libgfortran.inc28
1 files changed, 17 insertions, 11 deletions
diff --git a/meta/recipes-devtools/gcc/libgfortran.inc b/meta/recipes-devtools/gcc/libgfortran.inc
index 5f5d4af758..99c192ac30 100644
--- a/meta/recipes-devtools/gcc/libgfortran.inc
+++ b/meta/recipes-devtools/gcc/libgfortran.inc
@@ -6,22 +6,28 @@ EXTRA_OECONF_PATHS = "\
6" 6"
7 7
8do_configure () { 8do_configure () {
9 rm -rf ${B}/${TARGET_SYS}/libgfortran/ 9 for target in libbacktrace libgfortran
10 mkdir -p ${B}/${TARGET_SYS}/libgfortran/ 10 do
11 cd ${B}/${TARGET_SYS}/libgfortran/ 11 rm -rf ${B}/${TARGET_SYS}/$target/
12 chmod a+x ${S}/libgfortran/configure 12 mkdir -p ${B}/${TARGET_SYS}/$target/
13 relpath=${@os.path.relpath("${S}/libgfortran", "${B}/${TARGET_SYS}/libgfortran")} 13 cd ${B}/${TARGET_SYS}/$target/
14 $relpath/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} 14 chmod a+x ${S}/$target/configure
15 # Easiest way to stop bad RPATHs getting into the library since we have a 15 relpath=${@os.path.relpath("${S}", "${B}/${TARGET_SYS}")}
16 # broken libtool here 16 ../$relpath/$target/configure ${CONFIGUREOPTS} ${EXTRA_OECONF}
17 sed -i -e 's/hardcode_into_libs=yes/hardcode_into_libs=no/' ${B}/${TARGET_SYS}/libgfortran/libtool 17 # Easiest way to stop bad RPATHs getting into the library since we have a
18 # broken libtool here
19 sed -i -e 's/hardcode_into_libs=yes/hardcode_into_libs=no/' ${B}/${TARGET_SYS}/$target/libtool
20 done
18} 21}
19EXTRACONFFUNCS += "extract_stashed_builddir" 22EXTRACONFFUNCS += "extract_stashed_builddir"
20do_configure[depends] += "${COMPILERDEP}" 23do_configure[depends] += "${COMPILERDEP}"
21 24
22do_compile () { 25do_compile () {
23 cd ${B}/${TARGET_SYS}/libgfortran/ 26 for target in libbacktrace libgfortran
24 oe_runmake MULTIBUILDTOP=${B}/${TARGET_SYS}/libgfortran/ 27 do
28 cd ${B}/${TARGET_SYS}/$target/
29 oe_runmake MULTIBUILDTOP=${B}/${TARGET_SYS}/$target/
30 done
25} 31}
26 32
27do_install () { 33do_install () {