# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/openjdk/openjdk.conf # Copyright (C) 2022 - 2024 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- . $base/package/*/*/java-common-conf.in makeinstopt= cleanconfopt=0 autogen=0 hook_add preconf 2 "chmod +x configure" case $arch_machine in arm*|aarch*|powerpc64*|riscv64|s390x|i?86|x86_64) # TODO: SDECFG desktop? var_append extraconfopt ' ' --with-jvm-variants=server ;; *) var_append extraconfopt ' ' --with-jvm-variants=zero ;; esac case $arch_machine in ia64|riscv*|sparc64) CC_WRAPPER_INSERT="${CC_WRAPPER_INSERT/-O1/-Os}" #CXX_WRAPPER_INSERT="${CXX_WRAPPER_INSERT/-O1/-O2}" ;; esac if atstage cross; then var_remove_regex confopt " " "--build=.*" var_remove_regex confopt " " "--host=.*" var_append confopt ' ' "--build=\$arch_build" var_append confopt ' ' "--openjdk-target=$arch_target" # they have their own build and target vars unset AS LD unset HOST_CC HOSTCC HOST_CXX HOSTCXX unset BUILD_CC BUILDCC CC_FOR_BUILD makeopt= var_append GCC_WRAPPER_INSERT ' ' "-c?:-L$root`pkgprefix libdir libxcb`" fi # Additional configure options var_append extraconfopt ' ' '--enable-unlimited-crypto' var_append extraconfopt ' ' '--disable-warnings-as-errors' var_append extraconfopt ' ' '--with-stdc++lib=dynamic' for lib in giflib lcms libjpeg libpng zlib; do var_append extraconfopt ' ' "--with-$lib=system" done var_append confopt ' ' "--with-x=$root/$(pkgprefix libx11)" var_append extraconfopt ' ' "--with-fontconfig=$root/$(pkgprefix fontconfig)" #var_append confopt ' ' --with-toolchain-type=$SDECFG_DEFAULT_CC if [ "$SDECFG_DEFAULT_CC" != gcc ]; then var_append GCC_WRAPPER_REMOVE ' ' '-fno-var-tracking-assignments' fi # Do confopt cleaning manually, since automatic cleaning is broken var_remove extraconfopt ' ' "--with-pam" var_remove extraconfopt ' ' "--with-libpam" var_remove extraconfopt ' ' "--enable-pam" var_remove extraconfopt ' ' "--enable-libpam" # Replace -jN with JOBS=N and add images target var_remove makeopt ' ' -j$SDECFG_PARALLEL_MAX var_append makeopt ' ' "JOBS=$SDECFG_PARALLEL_MAX images" hook_add postmake 2 "cp -Rfv build/*/images/jdk/* $root/$prefix/"