diff options
author | Jongsung Kim <neidhard.kim@lge.com> | 2013-05-02 23:31:33 +0000 |
---|---|---|
committer | Jongsung Kim <neidhard.kim@lge.com> | 2013-05-02 23:31:33 +0000 |
commit | d8988dbe0ba813fecf620f2b2727009c1b832d5e (patch) | |
tree | a6c7f716a8405df419fdcd2edf336703f816ffba | |
parent | f9a787bef9a8478ca50e4ee32e2f4e9afafee063 (diff) | |
download | crosstool-ng-d8988dbe0ba813fecf620f2b2727009c1b832d5e.tar.gz crosstool-ng-d8988dbe0ba813fecf620f2b2727009c1b832d5e.tar.bz2 crosstool-ng-d8988dbe0ba813fecf620f2b2727009c1b832d5e.zip |
cc/gcc: modify to build gcc-4.8-based cross-tools
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.
Reported-by: Plotnikov Dmitry <leitz@ispras.ru>
Signed-off-by: Jongsung Kim <neidhard.kim@lge.com>
Message-Id: <201305031831.33395.neidhard.kim@lge.com>
Patchwork-Id: 241258
-rw-r--r-- | scripts/build/cc/gcc.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index 3feb25b9..9d9ef4d3 100644 --- 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. |