diff options
| author | Richard Purdie <rpurdie@linux.intel.com> | 2010-06-08 20:33:16 +0100 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-06-08 20:33:16 +0100 |
| commit | f47eeddbd692ac3c6109c18c9f04a3ad4dc789ba (patch) | |
| tree | abe9f2ef67deb85c5cde312123b53aac4daaf225 /meta/packages/gcc/gcc-configure-runtime.inc | |
| parent | d579b7c746b7113d5a4867b851ed2dc7733299a8 (diff) | |
| download | poky-f47eeddbd692ac3c6109c18c9f04a3ad4dc789ba.tar.gz | |
gcc-runtime: Various bug fixes
* Use the -nostdinc++ to CXX fixing libstdc++
* Generate libgcc in gcc-cross, save the result and use in gcc-runtime
* Fix the layout of the crt*.o files so the SDK compiler can find them
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/gcc/gcc-configure-runtime.inc')
| -rw-r--r-- | meta/packages/gcc/gcc-configure-runtime.inc | 10 |
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 | ||
| 9 | RUNTIMETARGET = "libgcc libssp libstdc++-v3" | 9 | RUNTIMETARGET = "libssp libstdc++-v3" |
| 10 | # ? | 10 | # ? |
| 11 | # libiberty | 11 | # libiberty |
| 12 | # libmudflap | 12 | # libmudflap |
| 13 | # libgfortran | 13 | # libgfortran |
| 14 | 14 | ||
| 15 | do_configure () { | 15 | do_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 | ||
| 33 | do_install () { | 33 | do_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 |
