derle.sh 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /usr/milis/bin/update-ca-trust
  2. _java_ver=8
  3. _jdk_update=222
  4. _jdk_build=05
  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-boot-jdk=$SRC/${isim}-boot \
  27. --with-cacerts-file=/etc/ssl/certs/java/cacerts \
  28. --with-extra-cflags="$EXTRA_CFLAGS" \
  29. --with-extra-cxxflags="$EXTRA_CFLAGS" \
  30. --with-update-version="${_jdk_update}" \
  31. --with-build-number="b${_jdk_build}" \
  32. --with-milestone="fcs" \
  33. --with-zlib=system
  34. LC_ALL=C \
  35. make $MAKEFLAGS all
  36. make install