Last active
May 22, 2022 22:39
-
-
Save mikroskeem/dfeda46abac5af40bd337f576b18e712 to your computer and use it in GitHub Desktop.
Building optimized JDK13 on Clear Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reference | |
# - http://august.nagro.us/optimized-openjdk.html | |
# - https://hg.openjdk.java.net/jdk/jdk/raw-file/tip/doc/building.html#x11 | |
# swupd bundle-add c-basic git openssh-client diffutils file which unzip zip java13-basic | |
# swupd bundle-add devpkg-libX11 devpkg-libXtst devpkg-libXrandr devpkg-libXt devpkg-libXrender | |
# swupd bundle-add dev-utils-dev # :( | |
# git clone git@github.com:openjdk/jdk.git | |
# git checkout jdk13-ga | |
FLAGS="-Ofast -march=native -mtune=skylake-avx512 -funroll-loops -fomit-frame-pointer -Wno-error=class-memaccess" | |
# TODO: dynamic libstdc++ | |
# TODO: use system libraries rather | |
bash configure --with-jvm-variants=server --with-jvm-features=link-time-opt \ | |
--with-extra-cflags="${FLAGS}" \ | |
--with-extra-cxxflags="${FLAGS}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment