summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-03-12 04:54:42 +0000
committerjb <jb@FreeBSD.org>1998-03-12 04:54:42 +0000
commit97b7e0762fb8697e9e7dbd50917697f47f6ab906 (patch)
treef8257c916bfbaeeb85bedacdd32b7b90aa80473b /gnu
parent06ff1ba87744c7a1e8d3a131c005dd41fd577483 (diff)
downloadFreeBSD-src-97b7e0762fb8697e9e7dbd50917697f47f6ab906.zip
FreeBSD-src-97b7e0762fb8697e9e7dbd50917697f47f6ab906.tar.gz
Change script to get the machine type from `uname -m' and make
the binutils headers for (machine)-unknown-freebsdelf. Also copy the bfd.h header to an architecture specific directory because there are two fundamental lines that differ (32-bit vs 64-bit) between i386 and alpha. The config.h for libbinutils generates the same on alpha as i386, so I didn't change that (though I was tempted!).
Diffstat (limited to 'gnu')
-rwxr-xr-xgnu/usr.bin/binutils/update.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/gnu/usr.bin/binutils/update.sh b/gnu/usr.bin/binutils/update.sh
index b9414a1..6dfd3aa 100755
--- a/gnu/usr.bin/binutils/update.sh
+++ b/gnu/usr.bin/binutils/update.sh
@@ -9,28 +9,31 @@
gnudir=$(pwd)
contribdir="${gnudir}/../../../contrib/binutils"
+platform="`uname -m`"
rm -rf build
mkdir build
+echo "binutils elf configuration for $platform"
+
(cd build
- ${contribdir}/configure i386-unknown-freebsdelf || exit
+ ${contribdir}/configure $platform-unknown-freebsdelf || exit
(cd gas
echo "Updating as"
make config.h || exit
- cp config.h ${gnudir}/as/i386/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/i386 || 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 || exit
- cp config.h ${gnudir}/libbfd/i386 || exit
+ cp bfd.h ${gnudir}/libbfd/$platform || exit
+ cp config.h ${gnudir}/libbfd/$platform || exit
)
(cd binutils
echo "Updating libbinutils"
OpenPOWER on IntegriCloud