24 lines
478 B
Bash
24 lines
478 B
Bash
#!/bin/sh
|
|
pkg_ver="2.10.1"
|
|
|
|
pkg_install() {
|
|
wget -O binutils.tar.gz https://mirrors.nav.ro/gnu/binutils/binutils-2.10.1.tar.gz
|
|
tar -xf binutils.tar.gz
|
|
cd binutils
|
|
|
|
../configure --prefix=/usr \
|
|
--enable-gold \
|
|
--enable-ld=default \
|
|
--enable-plugins \
|
|
--enable-shared \
|
|
--disable-werror \
|
|
--enable-64-bit-bfd \
|
|
--with-system-zlib
|
|
|
|
make tooldir=/usr
|
|
make install tooldir=/usr DESTDIR=$1
|
|
}
|
|
|
|
pkg_uninstall() {
|
|
make uninstall
|
|
}
|