For Phobos licensing see phobolicense.txt.
For GDC licensing see gpl.txt.

Installation:

This is a self containd MinGW release.  Extract GDC folder to directory of choice.


Building:



** Deviating from the versions specified may cause intended consquences. ie: Build failures, random crashes **

Ensure fstab as the following entry.  Substitute C: for drive of choice(Should work)

C:/crossdev /crossdev

Download the following packages:

binutils-2.23.1.tar.gz
cloog-0.18.0.tar.gz
gcc-4.8-20130303.tar.bz2
gmp-4.3.2.tar.bz2
isl-0.11.1.tar.bz2
mingwrt-3.20-mingw32-src.tar.gz
mpc-1.0.1.tar.gz
mpfr-3.1.1.tar.bz2
w32api-3.17-2-mingw32-src.tar.lzma

Clone GDC.  The checkout version is what I have the patches will properly compile.

git clone https://github.com/D-Programming-GDC/GDC.git
git checkout 166e02c2e99c3f6926513bb617593f24b7f4456f

Extract the download files to a directory called src.

Build in this order.  All commands are assumed ran from a directory called 
build within the respective source directory

GMP
---
../configure  --prefix=/crossdev/gdc/deps/gmp --disable-shared
make && make install


MPFR
----
../configure --prefix=/crossdev/gdc/deps/mpfr --with-gmp=/crossdev/gdc/deps/gmp --disable-shared
make && make install


MPC
---
../configure --prefix=/crossdev/gdc/deps/mpc --with-gmp=/crossdev/gdc/deps/gmp --with-mpfr=/crossdev/gdc/deps/mpfr/ --disable-shared
make && make install


ISL
---
../configure --prefix=/crossdev/gdc/deps/isl --disable-shared --with-gmp-prefix=/crossdev/gdc/deps/gmp
make && make install

CLOOG
-----
../configure --prefix=/crossdev/gdc/deps/cloog --with-bits=gmp --disable-shared --with-gmp=build --with-gmp-prefix=/crossdev/gdc/deps/gmp
make && make install

Binutils 
--------
Apply patch mingw-tls-binutils-2.23.1.patch
../configure --prefix=/crossdev/gdc/release
make && make install

MinGWRT
-------
Apply patch mingwrt_gdc.patch.  
 - Fixes %lf conversion issues.(Causes problems with 2^^4 expressions)
 - Fixes TLS offset by 1 problems
../configure --prefix=/crossdev/gdc/release
make && make install

Win32 API
---------
../configure --prefix=/crossdev/gdc/release
make && make install

GCC
---
Apply patch mingw-tls-gcc-4.8.patch.
 - Fixes SJLJ exception issue
 - Adds TLS support
export GCC_PREFIX="/crossdev/gdc/install"
# Required for updated assembler and linker.
export PATH="$GCC_PREFIX/bin:$PATH"
../configure --prefix=$GCC_PREFIX --with-gmp=/crossdev/gdc/deps/gmp --with-mpfr=/crossdev/gdc/deps/mpfr \
--with-mpc=/crossdev/gdc/deps/mpc --with-cloog=/crossdev/gdc/deps/cloog/ --with-isl=/crossdev/gdc/deps/isl \
--disable-bootstrap --enable-languages=c,c++,d,lto --enable-sjlj-exceptions