https://www.linuxtut.com/en/bec24db4a5a41db02895/ cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -DBUILD_SHARED_LIBS='ON' \ -DCMAKE_C_FLAGS='-mtune=generic -pipe' # likely requires serious computing power to build it fast time make -j16 real 4m 6.68s user 56m 32.61s sys 4m 45.34s