tce-load -i pygobject2-dev gtk2-dev libglade-dev libxml2-dev cd pygtk-2.24.0 CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static --localstatedir=/var find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make sudo make install The following modules will be built: atk pango pangocairo gtk with 2.24 API gtk.glade gtk.unixprint Numpy support: no