tce-load -i readline-dev perl5 python-dev libxslt-dev cd postgresql-9.4.5 CC="gcc -mtune=generic -Os -pipe" CXX="g++ -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --with-perl --with-python --with-tcl --with-openssl --with-libxml --with-libxslt --with-system-tzdata=/usr/local/share/zoneinfo find . -name Makefile.global -type f -exec sed -i 's/-O2//g' {} \; make sudo make install