tce-load -i cmake libva-dev git clone https://github.com/i-rinat/libvdpau-va-gl.git cd libvdpau-va-gl mkdir build cd build cmake -DCMAKE_C_FLAGS="-mtune=generic -Os -pipe" -DCMAKE_CXX_FLAGS="-mtune=generic -Os -pipe" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release .. find . -name CMakeCache.txt -type f -exec sed -i 's/-O2 -g//g' {} \; find . -name CMakeCache.txt -type f -exec sed -i 's/-O3//g' {} \; make CC="gcc -flto -fuse-linker-plugin" CXX="g++ -flto -fuse-linker-plugin" sudo make install