eth0s/ports/core/binutils/Pkgfile

33 lines
835 B
Text
Raw Normal View History

# Description: A linker, an assembler, and other tools for handling object files
# URL:
# Maintainer:
# Depends on:
name=binutils
2019-10-20 06:25:03 +08:00
version=2.33.1
release=1
source=(https://ftp.gnu.org/gnu/binutils/$name-$version.tar.xz)
build() {
if [ "$MULTILIB" = "yes" ]; then
multilibopt="--enable-multilib --with-lib-path=/usr/lib:/lib:/usr/lib32"
fi
cd $name-$version
mkdir -v build
cd build
../configure $multilibopt \
--prefix=/usr \
--enable-gold \
--enable-ld=default \
--enable-plugins \
--enable-shared \
--disable-werror \
--enable-64-bit-bfd \
--with-system-zlib
make tooldir=/usr
make tooldir=/usr DESTDIR=$PKG install
}