tce-load -i compiletc tcl-dev mesa-dev https://downloads.sourceforge.net/tcl/tk8.6.10-src.tar.gz cd tk8.6.10 cd unix CC="gcc -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe" CXX="g++ -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --disable-static find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \; make [1m 41.08s] sed -e "s@^\(TK_SRC_DIR='\).*@\1/usr/local/include'@" -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/local/lib@" -i tkConfig.sh sudo make install sudo make install-private-headers sudo ln -sf wish8.6 /usr/local/bin/wish sudo chmod 755 /usr/local/lib/libtk8.6.so