summaryrefslogtreecommitdiff
path: root/scripts/build/binutils.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-04-30 10:43:41 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-04-30 10:43:41 (GMT)
commit86c54d80791ab37b88bf3813794fb1fa04e1b251 (patch)
treeeb96aea88b692fd64fde5f5575faa484716294fe /scripts/build/binutils.sh
parentdacd159a98e28c1e5e1111c24cf400fee20f3e14 (diff)
Merge the fortran stuff to trunk now it works!
Fortran is not supported for all targets, though. ARM at least does not work. /trunk/scripts/build/binutils.sh | 8 8 0 0 ++++++++ /trunk/scripts/build/cc_gcc.sh | 11 6 5 0 ++++++----- /trunk/scripts/crosstool.sh | 10 9 1 0 +++++++++- /trunk/tools/addToolVersion.sh | 3 3 0 0 +++ /trunk/steps.mk | 2 2 0 0 ++ /trunk/config/cc/gcc.in | 16 16 0 0 ++++++++++++++++ 6 files changed, 44 insertions(+), 6 deletions(-)
Diffstat (limited to 'scripts/build/binutils.sh')
-rw-r--r--scripts/build/binutils.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/build/binutils.sh b/scripts/build/binutils.sh
index 41ef4a2..4fb94b6 100644
--- a/scripts/build/binutils.sh
+++ b/scripts/build/binutils.sh
@@ -25,6 +25,13 @@ do_binutils() {
CT_DoStep INFO "Installing binutils"
+ binutils_opts=
+ # If GMP and MPFR were configured, then use that,
+ # otherwise let binutils find the system-wide libraries, if they exist.
+ if [ "${CT_CC_GCC_GMP_MPFR}" = "y" ]; then
+ binutils_opts="--with-gmp=${CT_PREFIX_DIR} --with-mpfr=${CT_PREFIX_DIR}"
+ fi
+
CT_DoLog EXTRA "Configuring binutils"
CFLAGS="${CT_CFLAGS_FOR_HOST}" \
"${CT_SRC_DIR}/${CT_BINUTILS_FILE}/configure" \
@@ -34,6 +41,7 @@ do_binutils() {
--target=${CT_TARGET} \
--prefix=${CT_PREFIX_DIR} \
--disable-nls \
+ ${binutils_opts} \
${CT_BINUTILS_EXTRA_CONFIG} \
${BINUTILS_SYSROOT_ARG} 2>&1 |CT_DoLog ALL