tce-load -i compiletc openssl-dev sqlite3-dev tk-dev glib2-dev gdbm-dev bzip2-dev Xorg-7.7-dev cd Python-2.7.14 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 --localstatedir=/var --enable-shared --with-system-expat --with-system-ffi --with-tcltk-includes='-I/usr/local/include' --with-tcltk-libs='-L/usr/local/lib -ltk8.5 -ltcl8.5' find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; find . -name Makefile -type f -exec sed -i 's/-g -O3//g' {} \; make [1m 12.78s] sudo make install sudo chmod 755 /usr/local/lib/libpython2.7.so.1.0