freebsd-nq/gnu/usr.bin/binutils/update.sh
John Polstra ab5ad3a4b5 Restructure the binutils hierarchy somewhat in order to better
support building it for variant architectures.  It was already
becoming clear that the former structure was too rigid and didn't
scale well.

The usual sort of makefile magic arranges to .include an architecture
specific makefile "Makefile.${MACHINE_ARCH}" in each directory
where it exists.  Also, sources will be found in each subdirectory
"${MACHINE_ARCH}" that exists.  This is all taken care of automatically
by the top level "Makefile.inc0".

This all seems to work right for the i386 now.  I have also converted
those alpha pieces already present to the new schema as best I
could.

Also: change the BINDIR on the i386 to /usr/libexec/elf for "ar"
and "ranlib".  They are not object format independent enough to
put into /usr/bin.
1998-03-12 02:55:43 +00:00

43 lines
968 B
Bash
Executable File

#! /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"
rm -rf build
mkdir build
(cd build
${contribdir}/configure i386-unknown-freebsdelf || exit
(cd gas
echo "Updating as"
make config.h || exit
cp config.h ${gnudir}/as/i386/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
)
(cd bfd
echo "Updating libbfd"
make bfd.h config.h || exit
cp bfd.h ${gnudir}/libbfd || exit
cp config.h ${gnudir}/libbfd/i386 || exit
)
(cd binutils
echo "Updating libbinutils"
make config.h || exit
cp config.h ${gnudir}/libbinutils/config.h || exit
)
)
rm -rf build