tce-load -i gtk2-dev mono-dev libglade-dev libxml2-dev

cd gtk-sharp-2.12.10

patch -Np1 -i ../gtk-sharp-2.12.10.patch

CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --disable-static

find . -name Makefile -type f -exec sed -i 's/-g -O2 -g//g' {} \;

make
sudo make install

Configuration summary

   * Installation prefix = /usr/local
   * C# compiler: /usr/local/bin/mcs  -define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8 -define:GTK_SHARP_2_10 -define:GTK_SHARP_2_12 

   Optional assemblies included in the build:

      * glade-sharp.dll: yes
      * gtk-dotnet.dll: yes 
      * Mono.Cairo.dll: using system assembly
