Patchwork cc/gcc: modify to build gcc-4.8-based cross-tools

login
register
mail settings
Submitter Jongsung Kim
Date May 3, 2013, 9:31 a.m.
Message ID <201305031831.33395.neidhard.kim@lge.com>
Download mbox | patch
Permalink /patch/241258/
State Accepted
Commit 33f265e3e79d
Headers show

Comments

Jongsung Kim - May 3, 2013, 9:31 a.m.
Building cross-tool based on gcc-4.8 fails while "Installing
pass-2 core C compiler", because building libgcc.mvars needs
libbacktrace.a that gcc.sh doesn't build. This patch inserts
a few lines configuring, and making libbacktrace into gcc.sh
to build gcc-4.8-based cross-tools successfully.

Signed-off-by: Jongsung Kim <neidhard.kim@lge.com>
---
 scripts/build/cc/gcc.sh |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

--

--
For unsubscribe information see http://sourceware.org/lists.html#faq
Yann E. MORIN - May 3, 2013, 2:54 p.m.
Jongsung, All,

Your patch:
    cc/gcc: modify to build gcc-4.8-based cross-tools

has been applied as: #33f265e3e79d
    http://crosstool-ng.org/hg/crosstool-ng/rev/33f265e3e79d

Thank you!

Regards,
Yann E. MORIN.



--
For unsubscribe information see http://sourceware.org/lists.html#faq

Patch

diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -409,6 +409,11 @@  do_cc_core_backend() {
             CT_DoExecLog CFG make ${JOBSFLAGS} configure-libdecnumber
             CT_DoExecLog ALL make ${JOBSFLAGS} -C libdecnumber libdecnumber.a
         fi
+        # HACK: gcc-4.8 uses libbacktrace to make libgcc.mvars, so make it here.
+        if [ -d "${CT_SRC_DIR}/gcc-${CT_CC_VERSION}/libbacktrace" ]; then
+            CT_DoExecLog CFG make ${JOBSFLAGS} configure-libbacktrace
+            CT_DoExecLog ALL make ${JOBSFLAGS} -C libbacktrace
+        fi
 
         # Starting with GCC 4.3, libgcc.mk is no longer built,
         # and libgcc.mvars is used instead.