summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/libgfortran.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/libgfortran.inc')
-rw-r--r--meta/recipes-devtools/gcc/libgfortran.inc23
1 files changed, 9 insertions, 14 deletions
diff --git a/meta/recipes-devtools/gcc/libgfortran.inc b/meta/recipes-devtools/gcc/libgfortran.inc
index d3e2b411c8..4846decbb8 100644
--- a/meta/recipes-devtools/gcc/libgfortran.inc
+++ b/meta/recipes-devtools/gcc/libgfortran.inc
@@ -6,32 +6,27 @@ EXTRA_OECONF_PATHS = "\
6" 6"
7 7
8do_configure () { 8do_configure () {
9 target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##` 9 rm -rf ${B}/${TARGET_SYS}/libgfortran/
10 10 mkdir -p ${B}/${TARGET_SYS}/libgfortran/
11 echo "Configuring libgfortran" 11 cd ${B}/${TARGET_SYS}/libgfortran/
12 rm -rf ${B}/$target/libgfortran/
13 mkdir -p ${B}/$target/libgfortran/
14 cd ${B}/$target/libgfortran/
15 chmod a+x ${S}/libgfortran/configure 12 chmod a+x ${S}/libgfortran/configure
16 relpath=${@os.path.relpath("${S}/libgfortran", "${B}/$target/libgfortran")} 13 relpath=${@os.path.relpath("${S}/libgfortran", "${B}/${TARGET_SYS}/libgfortran")}
17 $relpath/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} 14 $relpath/configure ${CONFIGUREOPTS} ${EXTRA_OECONF}
18 # Easiest way to stop bad RPATHs getting into the library since we have a 15 # Easiest way to stop bad RPATHs getting into the library since we have a
19 # broken libtool here 16 # broken libtool here
20 sed -i -e 's/hardcode_into_libs=yes/hardcode_into_libs=no/' ${B}/$target/libgfortran/libtool 17 sed -i -e 's/hardcode_into_libs=yes/hardcode_into_libs=no/' ${B}/${TARGET_SYS}/libgfortran/libtool
21} 18}
22EXTRACONFFUNCS += "extract_stashed_builddir" 19EXTRACONFFUNCS += "extract_stashed_builddir"
23do_configure[depends] += "${COMPILERDEP}" 20do_configure[depends] += "${COMPILERDEP}"
24 21
25do_compile () { 22do_compile () {
26 target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##` 23 cd ${B}/${TARGET_SYS}/libgfortran/
27 cd ${B}/$target/libgfortran/ 24 oe_runmake MULTIBUILDTOP=${B}/${TARGET_SYS}/libgfortran/
28 oe_runmake MULTIBUILDTOP=${B}/$target/libgfortran/
29} 25}
30 26
31do_install () { 27do_install () {
32 target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##` 28 cd ${B}/${TARGET_SYS}/libgfortran/
33 cd ${B}/$target/libgfortran/ 29 oe_runmake 'DESTDIR=${D}' MULTIBUILDTOP=${B}/${TARGET_SYS}/libgfortran/ install
34 oe_runmake 'DESTDIR=${D}' MULTIBUILDTOP=${B}/$target/libgfortran/ install
35 if [ -d ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude ]; then 30 if [ -d ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude ]; then
36 rmdir --ignore-fail-on-non-empty -p ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude 31 rmdir --ignore-fail-on-non-empty -p ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude
37 fi 32 fi