mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-02-25 21:11:14 +03:00
build-mingw-w64.sh: Adjust gcc configure to closer match Arch Linux
This commit is contained in:
parent
7600c157b4
commit
68162a8fc1
@ -30,6 +30,11 @@ MINGW_W64_GITVER=v6.0.0
|
|||||||
MINGW_W64_GITURL="git://git.code.sf.net/p/mingw-w64/mingw-w64"
|
MINGW_W64_GITURL="git://git.code.sf.net/p/mingw-w64/mingw-w64"
|
||||||
MINGW_W64_SRCDIR=mingw-w64-git
|
MINGW_W64_SRCDIR=mingw-w64-git
|
||||||
|
|
||||||
|
ISL_VER=0.21
|
||||||
|
ISL_SRCTARBALL=isl-$ISL_VER.tar.bz2
|
||||||
|
ISL_URL="http://isl.gforge.inria.fr/isl-$ISL_VER.tar.bz2"
|
||||||
|
ISL_SRCDIR=isl-$ISL_VER
|
||||||
|
|
||||||
function setup_src {
|
function setup_src {
|
||||||
if [ ! -e "$BINUTILS_SRCTARBALL" ]; then
|
if [ ! -e "$BINUTILS_SRCTARBALL" ]; then
|
||||||
wget -O "$BINUTILS_SRCTARBALL" "$BINUTILS_URL"
|
wget -O "$BINUTILS_SRCTARBALL" "$BINUTILS_URL"
|
||||||
@ -42,12 +47,21 @@ function setup_src {
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -e "$ISL_SRCTARBALL" ]; then
|
||||||
|
wget -O "$ISL_SRCTARBALL" "$ISL_URL"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -e "$ISL_SRCDIR" ]; then
|
||||||
|
tar -xf "$ISL_SRCTARBALL"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -e "$GCC_SRCTARBALL" ]; then
|
if [ ! -e "$GCC_SRCTARBALL" ]; then
|
||||||
wget -O "$GCC_SRCTARBALL" "$GCC_URL"
|
wget -O "$GCC_SRCTARBALL" "$GCC_URL"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -e "$GCC_SRCDIR" ]; then
|
if [ ! -e "$GCC_SRCDIR" ]; then
|
||||||
tar -xf "$GCC_SRCTARBALL"
|
tar -xf "$GCC_SRCTARBALL"
|
||||||
|
ln -s ../$ISL_SRCDIR $GCC_SRCDIR/isl
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -e "$MINGW_W64_SRCDIR" ]; then
|
if [ ! -e "$MINGW_W64_SRCDIR" ]; then
|
||||||
@ -74,8 +88,12 @@ function build_arch {
|
|||||||
--build=$BUILD_ARCH \
|
--build=$BUILD_ARCH \
|
||||||
--host=$HOST_ARCH \
|
--host=$HOST_ARCH \
|
||||||
--target=$WIN32_TARGET_ARCH \
|
--target=$WIN32_TARGET_ARCH \
|
||||||
--disable-multilib \
|
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--enable-plugins \
|
||||||
|
--enable-deterministic-archives \
|
||||||
|
--disable-multilib \
|
||||||
|
--disable-nls \
|
||||||
|
--disable-werror \
|
||||||
$BINUTILS_EXTRA_CONFIGURE
|
$BINUTILS_EXTRA_CONFIGURE
|
||||||
fi
|
fi
|
||||||
make $JOBS configure-host
|
make $JOBS configure-host
|
||||||
@ -108,15 +126,16 @@ function build_arch {
|
|||||||
--build=$BUILD_ARCH \
|
--build=$BUILD_ARCH \
|
||||||
--host=$HOST_ARCH \
|
--host=$HOST_ARCH \
|
||||||
--target=$WIN32_TARGET_ARCH \
|
--target=$WIN32_TARGET_ARCH \
|
||||||
--with-gnu-ld \
|
--enable-static \
|
||||||
--with-gnu-as \
|
--enable-shared \
|
||||||
--enable-languages=c,c++ \
|
--enable-languages=c,lto,c++ \
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
--enable-threads=posix \
|
--enable-threads=posix \
|
||||||
--enable-fully-dynamic-string \
|
--enable-fully-dynamic-string \
|
||||||
--enable-libstdcxx-time=yes \
|
--enable-libstdcxx-time=yes \
|
||||||
--enable-libstdcxx-filesystem-ts=yes \
|
--enable-libstdcxx-filesystem-ts=yes \
|
||||||
--enable-cloog-backend=isl \
|
--enable-cloog-backend=isl \
|
||||||
|
--enable-libgomp \
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
--with-dwarf2 \
|
--with-dwarf2 \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user