Changeset View
Changeset View
Standalone View
Standalone View
package.yml
name : mingw-w64-binutils | name : mingw-w64-binutils | ||||
version : 2.33.1 | version : 2.36.1 | ||||
release : 1 | release : 2 | ||||
source : | source : | ||||
- ftp://gcc.gnu.org/pub/binutils/releases/binutils-2.33.1.tar.xz : ab66fc2d1c3ec0359b8e08843c9f33b63e8707efdff5e4cc5c200eae24722cbf | - https://ftp.gnu.org/gnu/binutils/binutils-2.36.1.tar.xz : e81d9edf373f193af428a0f256674aea62a9d74dfe93f65192d4eae030b0f3b0 | ||||
license : GPL-3.0-or-later | license : GPL-3.0-or-later | ||||
homepage : https://www.gnu.org/software/binutils/ | homepage : https://www.gnu.org/software/binutils/ | ||||
component : programming | component : programming | ||||
summary : | summary : | ||||
- Binutils for MinGW-w64 targeting 64 bit | - Binutils for MinGW-w64 targeting 64 bit | ||||
- 32bit: Binutils for MinGW-w64 targeting 32 bit | - 32bit : Binutils for MinGW-w64 targeting 32 bit | ||||
description: | | description: | | ||||
A set of programs to assemble and manipulate binary and object files for MinGW-w64 | A set of programs to assemble and manipulate binary and object files for MinGW-w64 | ||||
strip : no | strip : no | ||||
patterns : | patterns : | ||||
- 32bit: | - 32bit : | ||||
- /usr/share/mingw-w64/i686-w64-mingw32/* | - /usr/share/mingw-w64/i686-w64-mingw32/* | ||||
- /usr/share/mingw-w64/bin/i686-w64-mingw32-* | - /usr/share/mingw-w64/bin/i686-w64-mingw32-* | ||||
- /usr/share/info/i686-w64-mingw32-* | - /usr/share/info/i686-w64-mingw32-* | ||||
- /usr/share/man/man1/i686-w64-mingw32-* | - /usr/share/man/man1/i686-w64-mingw32-* | ||||
environment: | | environment: | | ||||
export TARGET32=i686-w64-mingw32 | export TARGET32=i686-w64-mingw32 | ||||
export TARGET64=x86_64-w64-mingw32 | export TARGET64=x86_64-w64-mingw32 | ||||
export PREFIX=/usr/share/mingw-w64 | export PREFIX=/usr/share/mingw-w64 | ||||
setup : | | setup : | | ||||
# Build steps: binutils -> gcc core -> mingw-w64 -> mingw-w64 with headers and winpthreads -> gcc | # Build steps: binutils -> gcc core -> mingw-w64 -> mingw-w64 with headers and winpthreads -> gcc | ||||
_binutils_conf() { | _binutils_conf() { | ||||
if [ $1 = TARGET64 ]; then | |||||
conf='--enable-64-bit-bfd' | |||||
fi | |||||
../configure \ | ../configure \ | ||||
--target=$1 \ | --target=$1 \ | ||||
--disable-multilib \ | --disable-multilib \ | ||||
--disable-werror \ | --disable-werror \ | ||||
--disable-nls \ | --disable-nls \ | ||||
--enable-lto \ | --enable-lto \ | ||||
--with-system-zlib \ | --with-system-zlib \ | ||||
--prefix=$PREFIX | --with-libiconv-prefix=/usr \ | ||||
--prefix=$PREFIX \ | |||||
$conf | |||||
} | } | ||||
mkdir bindir64 && pushd bindir64 | mkdir bindir64 && pushd bindir64 | ||||
_binutils_conf $TARGET64 | _binutils_conf $TARGET64 | ||||
popd | popd | ||||
mkdir bindir32 && pushd bindir32 | mkdir bindir32 && pushd bindir32 | ||||
_binutils_conf $TARGET32 | _binutils_conf $TARGET32 | ||||
Show All 25 Lines | install : | | ||||
for bin in ar as nm objcopy objdump ranlib strip readelf; do | for bin in ar as nm objcopy objdump ranlib strip readelf; do | ||||
rm -f $installdir$PREFIX/bin/$bin | rm -f $installdir$PREFIX/bin/$bin | ||||
done | done | ||||
mv $installdir$PREFIX/share/man $installdir/usr/share/man | mv $installdir$PREFIX/share/man $installdir/usr/share/man | ||||
rm -r $installdir$PREFIX/share | rm -r $installdir$PREFIX/share | ||||
# Install profile.d script which adds MinGW toolchain to path | # Install profile.d script which adds MinGW toolchain to path | ||||
install -D -m 00644 $pkgfiles/50-mingw-w64-toolchain-path.sh $installdir/usr/share/defaults/etc/profile.d/50-mingw-w64-toolchain-path.sh | install -Dm00644 $pkgfiles/50-mingw-w64-toolchain-path.sh $installdir/usr/share/defaults/etc/profile.d/50-mingw-w64-toolchain-path.sh |
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.