Pkgfile (1044B)
1 # Description: The GNU Binutils are a collection of binary tools 2 # URL: https://www.gnu.org/software/binutils/ 3 # Maintainer: Emmett1, emmett1 dot 2miligrams at protonmail dot com 4 # Depends on: flex zlib 5 6 name=binutils 7 version=2.43.1 8 release=1 9 source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz) 10 11 build() { 12 cd $name-$version 13 14 sed -i 's/\(^INFO_DEPS *=\).*/\1/' bfd/Makefile.in 15 sed -i 's/\(^INFO_DEPS *=\).*/\1/' gas/Makefile.in 16 17 mkdir build 18 cd build 19 20 ../configure \ 21 --prefix=/usr \ 22 --sysconfdir=/etc \ 23 --enable-gold \ 24 --enable-ld=default \ 25 --enable-lto \ 26 --enable-plugins \ 27 --enable-shared \ 28 --disable-werror \ 29 --with-system-zlib \ 30 --disable-multilib \ 31 --disable-gdb \ 32 --disable-gprof \ 33 --disable-gprofng \ 34 --without-zstd \ 35 --with-lib-path=/usr/lib:/lib 36 make DESTDIR=$PKG tooldir=/usr 37 make DESTDIR=$PKG tooldir=/usr install 38 39 rm -rf $PKG/usr/share/{locale,info} 40 rm $PKG/usr/lib/*.la 41 }