Commits

trass3r committed 750416e

improved build instructions

Comments (0)

Files changed (1)

 
 D1: [[http://www.digitalmars.com/d/1.0/changelog.html#new1_067|1.067]]
 
-D2: [[http://www.digitalmars.com/d/2.0/changelog.html#new2_052|2.052]]
+D2: [[http://www.digitalmars.com/d/2.0/changelog.html#new2_053|2.053]]
 
 === Supported GCC versions ===
 
 
 Run these commands in a terminal:
 {{{
-    hg clone https://goshawk@bitbucket.org/goshawk/gdc
+    hg clone https://bitbucket.org/goshawk/gdc
     mkdir gdc/dev     
 }}}
-Grab GCC 4.4.5 sources from [[http://gcc.gnu.org/releases.html | a mirror]]
-Unpack the GCC archive in the gdc/dev dir.  This creates gdc/dev/gcc-4.4.5.
+Grab GCC 4.5.3 sources from [[http://gcc.gnu.org/releases.html | a mirror]]
+Unpack the GCC archive in the gdc/dev dir.  This creates gdc/dev/gcc-4.5.3.
 Run these commands: 
 {{{
-    cd gdc/dev/gcc-4.4.5
+    cd gdc/dev/gcc-4.5.3
     ln -s ../../../d gcc/d
     ./gcc/d/setup-gcc.sh
     mkdir objdir
     cd objdir 
-    ../configure --enable-languages=d --enable-checking=release --disable-shared
-    make
+    ../configure --enable-languages=d --disable-shared \
+        --with-pkgversion="GDC 7cb42bd4eb94 DMD 2.053" \ # insert the correct versions
+        --with-bugurl="https://bitbucket.org/goshawk/gdc/issues" \
+        --enable-checking=release
+    make -j2 | tee build.log # insert your number of cores in the -j argument
     DESTDIR=/opt make install
     export PATH=$PATH:/opt/usr/local/bin/
 }}}
     ../configure --enable-languages=d --disable-shared --disable-bootstrap
 }}}
 
+Other configure arguments you might want to use:
+{{{
+    --disable-nls # disable Native Language Support (NLS), which lets GCC output diagnostics in languages other than American English
+    --enable-lto # link-time optimizations
+}}}
+
 The **make** command will perform the build.
 the **make install** command will install the compiled GDC in DESTDIR directory.