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 -mtune=generic -Os -pipe" -DCMAKE_CXX_FLAGS_RELEASE="-flto -fuse-linker-plugin -mtune=generic -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_GLES=ON -DFREEGLUT_BUILD_DEMOS=OFF ../ [-DFREEGLUT_WAYLAND=ON results in no X] [-fno-exceptions fails] make sudo make install