source: scripts/host-scripts/host-binutils.sh@ b15e4602

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since b15e4602 was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100755
File size: 2.2 KB
Line 
1#!/bin/bash
2
3### BINUTILS ###
4
5cd ${SRC}
6LOG="binutils-buildhost.log"
7
8unpack_tarball binutils-${NATIVE_BINUTILS_VER} &&
9
10# Determine whether this binutils requires
11# 'make configure-host' and whether
12# ld search path can be set with --with-lib-path.
13# Returned in ${BINUTILS_CONF_HOST} and
14# ${BINUTILS_WITH_LIB_PATH} respectively
15
16# TODO: check for architecture specific patches in check_binutils
17# ( alpha )
18check_binutils
19
20cd ${SRC}/${PKGDIR}
21
22# 20031015 - fix static linking issues during testsuite
23# with current CVS glibc. kernel 2.5.68+
24# Will only patch HJL 2.14.90.0.[6-7]
25
26case ${NATIVE_BINUTILS_VER} in
27 2.14.90.0.[6-7] )
28 apply_patch binutils-2.14.90.0.7-fix-static-link
29 ;;
30esac
31
32cd ${SRC}
33
34# Remove pre-existing build directory and recreate
35test -d binutils-${NATIVE_BINUTILS_VER}-buildhost-build &&
36 rm -rf binutils-${NATIVE_BINUTILS_VER}-buildhost-build
37
38mkdir binutils-${NATIVE_BINUTILS_VER}-buildhost-build
39cd binutils-${NATIVE_BINUTILS_VER}-buildhost-build
40
41max_log_init Binutils ${NATIVE_BINUTILS_VER} target ${CONFLOGS} ${LOG}
42CC="${CC-gcc}" ../${PKGDIR}/configure \
43 --prefix=${HST_TOOLS} \
44 --disable-nls \
45 --enable-shared \
46 --enable-64-bit-bfd \
47 >> ${LOGFILE} 2>&1 &&
48{
49 # Run make configure-host if required
50 test Y != "${BINUTILS_CONF_HOST}" ||
51 {
52 echo -e "\nmake configure-host\n${BRKLN}" >> ${LOGFILE}
53 make configure-host >> ${LOGFILE} 2>&1
54 }
55} &&
56echo " o Configure OK" &&
57
58min_log_init ${BUILDLOGS} &&
59make ${PMFLAGS} \
60 >> ${LOGFILE} 2>&1 &&
61echo " o Build OK" || barf
62
63min_log_init ${TESTLOGS} &&
64make -k check \
65 >> ${LOGFILE} 2>&1 &&
66echo " o Test OK" || errmsg
67
68min_log_init ${INSTLOGS} &&
69make install \
70 >> ${LOGFILE} 2>&1 &&
71echo " o All OK" || barf
72
Note: See TracBrowser for help on using the repository browser.