/usr/sbin/update-alternatives --set gcc "/usr/bin/gcc-8" #jdk8u ./configure --prefix=/usr \ --exec-prefix=/usr \ --disable-headful \ --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 -Wstringop-truncation' \ --with-extra-cxxflags='-fno-lifetime-dse -fno-delete-null-pointer-checks -Wno-error=return-type -Wno-error -fno-strict-overflow -Wstringop-truncation' # --with-extra-cflags='-Os -D_FORTIFY_SOURCE=2' \ # --with-extra-ldflags='-Xlinker -z -Xlinker relro' make all COMPRESS_JARS=true make profiles COMPRESS_JARS=true make images COMPRESS_JARS=true find . -exec strip --strip-unneeded {} \; /usr/sbin/update-alternatives --set gcc "/usr/bin/gcc-12"