repo/binutils/PACKAGE

25 lines
478 B
Text
Raw Normal View History

#!/bin/sh
pkg_ver="2.10.1"
pkg_install() {
2021-06-30 00:40:13 +03:00
wget -O binutils.tar.gz https://mirrors.nav.ro/gnu/binutils/binutils-2.10.1.tar.gz
tar -xf binutils.tar.gz
2021-06-30 00:26:09 +03:00
cd binutils
../configure --prefix=/usr \
2021-06-30 00:26:09 +03:00
--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
}