tce-load -i compiletc cmake libEGL-dev libXi-dev https://downloads.sourceforge.net/project/freeglut/freeglut/3.2.1/freeglut-3.2.1.tar.gz cd freeglut-3.2.1 mkdir build cd build cmake -LAH -DCMAKE_C_FLAGS_RELEASE="-flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" -DCMAKE_CXX_FLAGS_RELEASE="-flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=TRUE -DFREEGLUT_BUILD_STATIC_LIBS=OFF -DFREEGLUT_BUILD_DEMOS=OFF ../ [-DFREEGLUT_WAYLAND=ON results in no X] [-DFREEGLUT_GLES=ON results in different lib name] [-fno-exceptions fails] make sudo make install