derle.sh 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /usr/aylinux/bin/update-ca-trust
  2. _java_ver=8
  3. _jdk_update=282
  4. _jdk_build=08
  5. _repo_ver=jdk${_java_ver}u${_jdk_update}-b${_jdk_build}
  6. _jdkname=openjdk8
  7. _jvmdir=/usr/lib/jvm/java-8-openjdk
  8. for d in corba hotspot jaxp jaxws jdk langtools nashorn; do
  9. mv $d-jdk${_java_ver}u${_jdk_update}-b${_jdk_build} jdk8u-jdk${_java_ver}u${_jdk_update}-b${_jdk_build}/$d
  10. done
  11. cd jdk8u-jdk${_java_ver}u${_jdk_update}-b${_jdk_build}
  12. OLD_PATH=$PATH
  13. #export JAVA_HOME=$SRC/${isim}-boot
  14. export PATH=$JAVA_HOME/bin:$OLD_PATH
  15. WARN_CFLAGS="-Wno-error=return-type -Wno-error=stringop-overflow= -Wno-error=deprecated-declarations"
  16. EXTRA_CFLAGS="-fno-delete-null-pointer-checks -fno-lifetime-dse $WARN_CFLAGS"
  17. unset CFLAGS
  18. unset CXXFLAGS
  19. export CFLAGS="$EXTRA_CFLAGS"
  20. export CXXFLAGS="$EXTRA_CFLAGS"
  21. [ -z $JOBS ] && JOBS=$(nproc)
  22. LC_ALL=C \
  23. /bin/bash configure $EXTRA_OPTIONS \
  24. --prefix=$PKG/usr/lib \
  25. --enable-unlimited-crypto \
  26. --with-cacerts-file=/etc/ssl/certs/java/cacerts \
  27. --with-extra-cflags="$EXTRA_CFLAGS" \
  28. --with-extra-cxxflags="$EXTRA_CFLAGS" \
  29. --with-update-version="${_jdk_update}" \
  30. --with-build-number="b${_jdk_build}" \
  31. --with-milestone="fcs" \
  32. --with-zlib=system
  33. LC_ALL=C \
  34. make $MAKEFLAGS all
  35. make install