2021-06-20 17:37:32 -05:00
|
|
|
# Description: GNU binutils for mingw-w64 toolchain
|
|
|
|
# URL: https://www.gnu.org/software/binutils/
|
|
|
|
# Maintainer: Matt Housh, jaeger at crux dot ninja
|
|
|
|
|
|
|
|
name=mingw-w64-binutils
|
2023-12-16 19:03:58 -06:00
|
|
|
version=2.39
|
2021-06-20 17:37:32 -05:00
|
|
|
release=1
|
|
|
|
source=(http://ftpmirror.gnu.org/gnu/binutils/binutils-$version.tar.xz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
for T in {i686,x86_64}-w64-mingw32; do
|
|
|
|
mkdir build-$T
|
|
|
|
cd build-$T
|
|
|
|
../binutils-$version/configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--target=$T \
|
|
|
|
--disable-nls \
|
|
|
|
--disable-multilib
|
2023-07-02 15:02:55 -05:00
|
|
|
sed -i -e '/^MAKEINFO/s:=.*:= true:' Makefile
|
2021-06-20 17:37:32 -05:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
cd ..
|
|
|
|
done
|
|
|
|
rm -r $PKG/usr/share/info
|
2022-09-28 17:08:20 -05:00
|
|
|
rm $PKG/usr/lib/bfd-plugins/libdep.so
|
2021-06-20 17:37:32 -05:00
|
|
|
}
|