mingw-w64-crt: initial import, version 8.0.0
This commit is contained in:
parent
b0464313b1
commit
b2f75d926a
mingw-w64-crt
1331
mingw-w64-crt/.footprint
Normal file
1331
mingw-w64-crt/.footprint
Normal file
File diff suppressed because it is too large
Load Diff
1
mingw-w64-crt/.nostrip
Normal file
1
mingw-w64-crt/.nostrip
Normal file
@ -0,0 +1 @@
|
||||
.*
|
7
mingw-w64-crt/.signature
Normal file
7
mingw-w64-crt/.signature
Normal file
@ -0,0 +1,7 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF3+N2eH0UwKIV9nwIUyrchUW26S8SxQ27UNfdxFxiiz2nyCWnmufpCgp23X3ZjPz/kPYkqTf68hxiL1HuK/BQPQI=
|
||||
SHA256 (Pkgfile) = b116ff1b0bc6d31c8ea0feab115f2e5185da5a5341c31df9e8365f69cd47c2a7
|
||||
SHA256 (.footprint) = d732c3cfb42bee52a7d147fc25e7811b3a4f6823c9a6ef3426885c0b6888307a
|
||||
SHA256 (mingw-w64-v8.0.0.tar.bz2) = 44c740ea6ab3924bc3aa169bad11ad3c5766c5c8459e3126d44eabb8735a5762
|
||||
SHA256 (binutils-2.35.1.tar.xz) = 3ced91db9bf01182b7e420eab68039f2083aed0a214c0424e257eae3ddee8607
|
||||
SHA256 (gcc-10.2.0.tar.xz) = b8dd4368bb9c7f0b98188317ee0254dd8cc99d1e3a18d0ff146c855fe16c1d8c
|
62
mingw-w64-crt/Pkgfile
Normal file
62
mingw-w64-crt/Pkgfile
Normal file
@ -0,0 +1,62 @@
|
||||
# Description: C runtime (crt) for mingw-w64 toolchain
|
||||
# URL: http://mingw-w64.org/
|
||||
# Maintainer: Matt Housh, jaeger at crux dot ninja
|
||||
|
||||
name=mingw-w64-crt
|
||||
version=8.0.0
|
||||
release=1
|
||||
source=(https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/mingw-w64-v$version.tar.bz2 \
|
||||
http://ftpmirror.gnu.org/gnu/binutils/binutils-2.35.1.tar.xz \
|
||||
http://gcc.gnu.org/pub/gcc/releases/gcc-$version/gcc-10.2.0.tar.xz)
|
||||
|
||||
build() {
|
||||
|
||||
# build a stub sysroot gcc if mingw-w64-gcc isn't already installed; if it is, that will be used instead
|
||||
if [ ! -x /usr/bin/x86_64-w64-mingw32-gcc ]; then
|
||||
|
||||
export SYSROOT="--with-sysroot=$SRC/sysroot"
|
||||
|
||||
for T in {i686,x86_64}-w64-mingw32; do
|
||||
mkdir build-binutils-$T
|
||||
cd build-binutils-$T
|
||||
../binutils-2.35.1/configure --target=$T --disable-multilib --prefix=$SRC/sysroot $SYSROOT
|
||||
make
|
||||
make install
|
||||
cd ..
|
||||
done
|
||||
|
||||
export PATH=$SRC/sysroot/bin:$PATH
|
||||
|
||||
for T in {i686,x86_64}-w64-mingw32; do
|
||||
mkdir build-headers-$T
|
||||
cd build-headers-$T
|
||||
../mingw-w64-v$version/mingw-w64-headers/configure --host=$T --prefix=$SRC/sysroot/$T
|
||||
make install
|
||||
if [ "$T" = "x86_64-w64-mingw32" ]; then
|
||||
ln -sv $SRC/sysroot/$T $SRC/sysroot/mingw
|
||||
ln -sv $SRC/sysroot/$T/lib $SRC/sysroot/$T/lib64
|
||||
fi
|
||||
cd ..
|
||||
done
|
||||
|
||||
for T in {i686,x86_64}-w64-mingw32; do
|
||||
mkdir build-gcc-$T
|
||||
cd build-gcc-$T
|
||||
../gcc-10.2.0/configure --target=$T --disable-multilib --disable-nls --enable-threads=posix --prefix=$SRC/sysroot $SYSROOT
|
||||
make all-gcc
|
||||
make install-gcc
|
||||
cd ..
|
||||
done
|
||||
fi
|
||||
|
||||
# now build the crt
|
||||
for T in {x86_64,i686}-w64-mingw32; do
|
||||
mkdir build-$T
|
||||
cd build-$T
|
||||
[[ "$T" = "x86_64-w64-mingw32" ]] && OPTS="--enable-lib64 --disable-lib32" || OPTS="--enable-lib32 --disable-lib64"
|
||||
../mingw-w64-v$version/mingw-w64-crt/configure --prefix=/usr/$T --host=$T $OPTS --enable-wildcard $SYSROOT
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
cd ..
|
||||
done
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user