tce-load -i compiletc sqlite3-dev tk8.6-dev glib2-dev gdbm-dev Xorg-7.7-dev wget https://www.python.org/ftp/python/3.9.4/Python-3.9.4.tar.xz cd Python-3.9.4 edit setup.py curses_includes.append('/usr/local/include/ncursesw') CPPFLAGS="-I/usr/local/include/ncursesw" CC="gcc -mtune=generic -Os -pipe" CXX="g++ -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --enable-shared --with-system-expat --with-system-ffi --with-ensurepip=yes --with-tcltk-includes='-I/usr/local/include' --with-tcltk-libs='-L/usr/local/lib -ltk8.6 -ltcl8.6' --with-lto find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; find . -name Makefile -type f -exec sed -i 's/-g -O3//g' {} \; find . -name Makefile -type f -exec sed -i 's/flto-partition=none -g/flto-partition=none/g' {} \; make [3m 11.50s] sudo make install