diff options
author | Ruben Rodriguez <ruben@gnu.org> | 2015-03-09 21:19:42 +0100 |
---|---|---|
committer | Ruben Rodriguez <ruben@gnu.org> | 2015-03-09 21:19:42 +0100 |
commit | 09622311aa51487cd9cd98e8cbd8da5987bcad18 (patch) | |
tree | 6ebd99d77b373c843015a53e0428a06736ed35c5 /data/buildscripts/toolchain-windows.sh | |
parent | 0d17f6aeab217192675591b771f472802ae52e3d (diff) |
Tune-up build scripts for multi-platform batch building
Diffstat (limited to 'data/buildscripts/toolchain-windows.sh')
-rw-r--r-- | data/buildscripts/toolchain-windows.sh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/data/buildscripts/toolchain-windows.sh b/data/buildscripts/toolchain-windows.sh index d885831..18073a0 100644 --- a/data/buildscripts/toolchain-windows.sh +++ b/data/buildscripts/toolchain-windows.sh @@ -7,7 +7,6 @@ apt-get -q -y --yes --force-yes install libmpfrc++-dev libmpc-dev zlib1g-dev WD=$HOME/mingw-w64-build rm -rf $WD mkdir $WD -cp spec $WD/msvcr100.spec cd $WD wget http://ftp.gnu.org/gnu/binutils/binutils-2.24.tar.bz2 @@ -41,14 +40,12 @@ make install # First stage of gcc compilation cd $WD -# We don't want to link against msvcrt.dll due to bug 9084. -sed 's/msvcrt/msvcr100/' -i $WD/msvcr100.spec # Linking libgcc against msvcrt is hard-coded... sed 's/msvcrt/msvcr100/' -i $WD/gcc-4.9.1/gcc/config/i386/t-mingw-w32 $WD/gcc-4.9.1/libgcc/config/i386/t-mingw32 mkdir gcc-4.9.1-mingw32 && cd gcc-4.9.1-mingw32 # LDFLAGS_FOR_TARGET does not work for some reason. Thus, we take # CFLAGS_FOR_TARGET. -export CFLAGS_FOR_TARGET="-specs=$WD/msvcr100.spec -Wl,--nxcompat -Wl,--dynamicbase" +export CFLAGS_FOR_TARGET="-Wl,--nxcompat -Wl,--dynamicbase" ../gcc-4.9.1/configure --prefix=/usr/local/ --target=i686-w64-mingw32 --with-gnu-ld --with-gnu-as --enable-languages=c,c++ --disable-multilib make all-gcc -j7 make install-gcc |