blob: 6dfd3aa540bab81668e9d571ec149d83c9bb0a95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#! /bin/sh
#
# This script installs the main files generated by the binutils
# "configure" scripts and makefiles. It can be used for upgrading to
# a new version of binutils.
#
# Don't forget to change the VERSION definition in the top level
# "Makefile.inc0".
gnudir=$(pwd)
contribdir="${gnudir}/../../../contrib/binutils"
platform="`uname -m`"
rm -rf build
mkdir build
echo "binutils elf configuration for $platform"
(cd build
${contribdir}/configure $platform-unknown-freebsdelf || exit
(cd gas
echo "Updating as"
make config.h || exit
cp config.h ${gnudir}/as/$platform/config.h || exit
)
(cd ld
echo "Updating ld"
make config.h ldemul-list.h || exit
cp config.h ${gnudir}/ld || exit
cp ldemul-list.h ${gnudir}/ld/$platform || exit
)
(cd bfd
echo "Updating libbfd"
make bfd.h config.h || exit
cp bfd.h ${gnudir}/libbfd/$platform || exit
cp config.h ${gnudir}/libbfd/$platform || exit
)
(cd binutils
echo "Updating libbinutils"
make config.h || exit
cp config.h ${gnudir}/libbinutils/config.h || exit
)
)
rm -rf build
|