tce-load -i cd tcl8.5.12 cd unix cp pthread_np.h to /usr/include 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,^TCL_BUILD_LIB_SPEC='-L.*/unix,TCL_BUILD_LIB_SPEC='-L/usr/local/lib," -e "s,^TCL_SRC_DIR='.*',TCL_SRC_DIR='/usr/local/include'," -e "s,^TCL_BUILD_STUB_LIB_SPEC='-L.*/unix,TCL_BUILD_STUB_LIB_SPEC='-L/usr/local/lib," -e "s,^TCL_BUILD_STUB_LIB_PATH='.*/unix,TCL_BUILD_STUB_LIB_PATH='/usr/local/lib," -e "s,^TCL_LIB_FILE='libtcl8.5..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl8.5\$\{TCL_DBGX\}.so\"," -e "s,^TCL_CC_SEARCH_FLAGS='\(.*\)',TCL_CC_SEARCH_FLAGS='\1:/usr/local/lib'," -e "s,^TCL_LD_SEARCH_FLAGS='\(.*\)',TCL_LD_SEARCH_FLAGS='\1:/usr/local/lib'," -i tclConfig.sh make install make install-private-headers ln -s tclsh8.5 /usr/local/bin/tclsh chmod -v 755 /usr/local/lib/libtcl8.5.so