derle.sh 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. version=17.0.6+2
  2. _cert_ver=20210916
  3. OLD_PATH=$PATH
  4. export JAVA_HOME=$SRC/openjdk17-boot
  5. export PATH=$JAVA_HOME/bin:$OLD_PATH
  6. unset CFLAGS
  7. unset CXXFLAGS
  8. unset LDFLAGS
  9. unset MAKEFLAGS
  10. export _CFLAGS+=' -fcommon'
  11. export _CXXFLAGS+=' -fcommon'
  12. [ -z $JOBS ] && JOBS=$(nproc)
  13. mkdir $SRC/build
  14. cd $SRC/build
  15. LC_ALL=C
  16. /bin/bash ../jdk17u-jdk-${version/+/-}/configure \
  17. --enable-ccache \
  18. --prefix=/usr/lib/jvm/java-17-openjdk \
  19. --disable-precompiled-headers \
  20. --disable-warnings-as-errors \
  21. --enable-dtrace=no \
  22. --enable-unlimited-crypto \
  23. --with-native-debug-symbols=internal \
  24. --with-debug-level=release \
  25. --with-stdc++lib=dynamic \
  26. --with-jvm-variants=server \
  27. --with-cacerts-file=$KAYNAK_DIZIN/java_cacerts-${_cert_ver} \
  28. --with-jtreg=no \
  29. --with-boot-jdk=$JAVA_HOME \
  30. --with-version-opt="Milis-r$devir" \
  31. --with-version-build="${version#*+}" \
  32. --with-vendor-name="Milis" \
  33. --with-jobs=$MAKEJOBS \
  34. --with-libjpeg=system \
  35. --with-giflib=system \
  36. --with-libpng=system \
  37. --with-zlib=system \
  38. --with-lcms=system \
  39. --with-extra-cflags="$_CFLAGS" \
  40. --with-extra-cxxflags="$_CXXFLAGS"
  41. # NOTE: for debugging build issues: set LOG to debug, JOBS to 1.
  42. LC_ALL=C \
  43. make LOG=warn JOBS=$JOBS jdk-image