tce-load -i tcl-dev Xorg-7.6-dev cd tk8.5.12 cd unix CFLAGS="-mtune=generic -Os -pipe" CXXFLAGS="-mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --enable-threads --enable-64bit edit Makefile to remove -O2 make sed -i -e "s,^TK_BUILD_LIB_SPEC='-L.*/unix,TK_BUILD_LIB_SPEC='-L/usr/local/lib," -e "s,^TK_SRC_DIR='.*',TK_SRC_DIR='/usr/local/include'," -e "s,^TK_BUILD_STUB_LIB_SPEC='-L.*/unix,TK_BUILD_STUB_LIB_SPEC='-L/usr/local/lib," -e "s,^TK_BUILD_STUB_LIB_PATH='.*/unix,TK_BUILD_STUB_LIB_PATH='/usr/local/lib," tkConfig.sh sudo make install sudo make install-private-headers sudo ln -s wish8.5 /usr/local/bin/wish chmod 755 /usr/local/lib/libtk8.5.so