/usr/sbin/update-alternatives --set gcc "/usr/bin/gcc-9" # # compile with gcc 9 # # jdk11u # ./configure --prefix=/usr \ --exec-prefix=/usr \ --enable-headless-only \ --with-jvm-variants=server \ --with-debug-level=release \ --disable-debug-symbols \ --disable-zip-debug-info \ --enable-unlimited-crypto \ --with-extra-cflags=-Os \ --with-stdc++lib=dynamic \ --with-extra-cflags='-fno-lifetime-dse -fno-delete-null-pointer-checks -Wno-error=return-type -Wno-error -fno-strict-overflow ' \ --with-extra-cxxflags='-fno-lifetime-dse -fno-delete-null-pointer-checks -Wno-error=return-type -Wno-error -fno-strict-overflow ' make all make profiles make images cd build find . -exec strip --strip-unneeded {} \; /usr/sbin/update-alternatives --set gcc "/usr/bin/gcc-12"