The GNU Modula-2 front end to GCC

Debian build on gcc-4.7 branch

To build gm2 based on the 4.7 series of GCC you will need to install:

$ sudo apt-get install gcc-multilib libmpfr-dev libgmp-dev libmpc-dev flex

To download and extract the tarball:

$ wget http://floppsie.comp.glam.ac.uk/download/c/gcc-4.7.3+gm2-git-latest.tar.gz
$ tar zxf gcc-4.7.3+gm2-git-latest.tar.gz

To configure:

$ mkdir build-4.7.3
$ cd build-4.7.3
$ CXXFLAGS=-g BOOT_CFLAGS=-g CFLAGS=-g \
  ../gcc-4.7.3+gm2-git-latest/gm2/gcc-versionno/configure \
  --prefix=$HOME/opt \
  --libexecdir=$HOME/opt/lib \
  --enable-shared \
  --enable-threads=posix --enable-__cxa_atexit \
  --enable-clocale=gnu --enable-languages=c,c++,gm2 \
  --disable-multilib --disable-bootstrap --enable-checking --enable-libgm2

To compile:

$ make

To install:

$ make install