summaryrefslogtreecommitdiffstats
path: root/meta/packages/gcc/gcc-configure-runtime.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gcc/gcc-configure-runtime.inc')
-rw-r--r--meta/packages/gcc/gcc-configure-runtime.inc10
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/packages/gcc/gcc-configure-runtime.inc b/meta/packages/gcc/gcc-configure-runtime.inc
index 7b43aabf99..180ca8d0ee 100644
--- a/meta/packages/gcc/gcc-configure-runtime.inc
+++ b/meta/packages/gcc/gcc-configure-runtime.inc
@@ -6,20 +6,20 @@ EXTRA_OECONF_PATHS = " \
6 --with-sysroot=${STAGING_DIR_TARGET} \ 6 --with-sysroot=${STAGING_DIR_TARGET} \
7 --with-build-sysroot=${STAGING_DIR_TARGET}" 7 --with-build-sysroot=${STAGING_DIR_TARGET}"
8 8
9RUNTIMETARGET = "libgcc libssp libstdc++-v3" 9RUNTIMETARGET = "libssp libstdc++-v3"
10# ? 10# ?
11# libiberty 11# libiberty
12# libmudflap 12# libmudflap
13# libgfortran 13# libgfortran
14 14
15do_configure () { 15do_configure () {
16 cp ${STAGING_DIR_NATIVE}${prefix_native}/include/gcc-build-internal-${TARGET_SYS}/* ${S}/gcc 16 export CXX="${CXX} -nostdinc++"
17 for d in ${RUNTIMETARGET}; do 17 for d in ${RUNTIMETARGET}; do
18 echo "Configuring $d" 18 echo "Configuring $d"
19 mkdir -p ${B}/$d/ 19 mkdir -p ${B}/$d/
20 cd ${B}/$d/ 20 cd ${B}/$d/
21 chmod a+x ${S}/$d/configure 21 chmod a+x ${S}/$d/configure
22 ${S}/$d/configure ${CONFIGUREOPTS} ${EXTRA_OECONF_PATHS} 22 ${S}/$d/configure ${CONFIGUREOPTS} ${EXTRA_OECONF}
23 done 23 done
24} 24}
25 25
@@ -31,6 +31,10 @@ do_compile () {
31} 31}
32 32
33do_install () { 33do_install () {
34 # Install libgcc from our gcc-cross saved data
35 install -d ${D}${base_libdir} ${D}${libdir}
36 cp -fpPR ${STAGING_INCDIR_NATIVE}/gcc-build-internal-${TARGET_SYS}/* ${D}
37
34 for d in ${RUNTIMETARGET}; do 38 for d in ${RUNTIMETARGET}; do
35 cd ${B}/$d/ 39 cd ${B}/$d/
36 oe_runmake 'DESTDIR=${D}' install 40 oe_runmake 'DESTDIR=${D}' install