Also, for any install.sh build, maximal compiler optimizations (-O3) are performance critical. Also --enable-isystem cleans up some boost warnings.
$ CFLAGS=-O3 CXXFLAGS=-O3 ./install.sh --build-boost --disable-shared --enable-avx512 --enable-avx2 --enable-sse41 --enable-isystem
(edited)