2019-09-28 00:17:56 +08:00
|
|
|
# Description: A linker, an assembler, and other tools for handling object files
|
|
|
|
# URL:
|
2019-11-10 23:58:56 +08:00
|
|
|
# Maintainer: Emmett1, emmett1 dot 2miligrams at gmail dot com
|
2019-09-28 00:17:56 +08:00
|
|
|
# Depends on:
|
|
|
|
|
|
|
|
name=binutils
|
2021-04-18 08:19:42 +08:00
|
|
|
version=2.36.1
|
2019-09-28 00:17:56 +08:00
|
|
|
release=1
|
|
|
|
source=(https://ftp.gnu.org/gnu/binutils/$name-$version.tar.xz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
|
|
|
|
|
|
|
mkdir -v build
|
|
|
|
cd build
|
|
|
|
|
2020-06-28 23:38:04 +08:00
|
|
|
../configure \
|
2019-09-28 00:17:56 +08:00
|
|
|
--prefix=/usr \
|
|
|
|
--enable-gold \
|
|
|
|
--enable-ld=default \
|
|
|
|
--enable-plugins \
|
|
|
|
--enable-shared \
|
|
|
|
--disable-werror \
|
|
|
|
--enable-64-bit-bfd \
|
2020-06-28 23:38:04 +08:00
|
|
|
--with-system-zlib \
|
|
|
|
--enable-multilib \
|
|
|
|
--with-lib-path=/usr/lib:/lib:/usr/lib32
|
2019-09-28 00:17:56 +08:00
|
|
|
make tooldir=/usr
|
2021-04-18 08:19:42 +08:00
|
|
|
make tooldir=/usr DESTDIR=$PKG install -j1
|
2019-09-28 00:17:56 +08:00
|
|
|
}
|