You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
573 B
25 lines
573 B
name=binutils
|
|
version=2.24
|
|
|
|
dlextract "http://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2" \
|
|
"e0f71a7b2ddab0f8612336ac81d9636b"
|
|
|
|
mkdir "$name-build"; cd "$name-build"
|
|
|
|
"../$name-$version/configure" \
|
|
--prefix=/tools \
|
|
--with-sysroot="$dir_install" \
|
|
--with-lib-path=/tools/lib \
|
|
--target="$target" \
|
|
--disable-nls \
|
|
--disable-werror
|
|
|
|
make
|
|
|
|
case $(uname -m) in
|
|
x86_64) mkdir "$dir_install/tools/lib" && ln -s lib "$dir_install/tools/lib64" ;;
|
|
esac
|
|
|
|
make DESTDIR="$dir_install" install
|
|
|
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:
|
|
|