Skip to content

Commit

Permalink
AIX: Changes in configuration files to support OpenXL17 (#3822)
Browse files Browse the repository at this point in the history
* configuration file changes
  • Loading branch information
suchismith1993 authored Jun 20, 2024
1 parent 0545121 commit 738e41c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions build-farm/platform-specific-configurations/aix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ source "$SCRIPT_DIR/../../sbin/common/constants.sh"
export PATH="/opt/freeware/bin:/usr/local/bin:/opt/IBM/xlC/13.1.3/bin:/opt/IBM/xlc/13.1.3/bin:$PATH"
# Without this, java adds /usr/lib to the LIBPATH and it's own library
# directories of anything it forks which breaks linkage
export LIBPATH=/opt/freeware/lib/pthread/ppc64:/opt/freeware/lib:/usr/lib
export LIBPATH=/opt/freeware/lib/pthread:/opt/freeware/lib:/usr/lib
export CONFIGURE_ARGS_FOR_ANY_PLATFORM="${CONFIGURE_ARGS_FOR_ANY_PLATFORM} --with-cups-include=/opt/freeware/include"

# Any version below 11
Expand Down Expand Up @@ -127,13 +127,19 @@ else
export CONFIGURE_ARGS_FOR_ANY_PLATFORM="${CONFIGURE_ARGS_FOR_ANY_PLATFORM} DF=/usr/sysv/bin/df"
fi

if [ "$JAVA_FEATURE_VERSION" -ge 11 ]; then
if [ "$JAVA_FEATURE_VERSION" -le 21 ] && [ "$JAVA_FEATURE_VERSION" -ge 11 ]; then
export LANG=C
export PATH=/opt/freeware/bin:$JAVA_HOME/bin:/usr/local/bin:/opt/IBM/xlC/16.1.0/bin:/opt/IBM/xlc/16.1.0/bin:$PATH
export CC=xlclang
export CXX=xlclang++
fi

if [ "$JAVA_FEATURE_VERSION" -ge 22 ]; then
export PATH=/opt/freeware/bin:$JAVA_HOME/bin:/usr/local/bin:/opt/IBM/openxlC/17.1.1/bin:$PATH
export EXTRA_PATH=/opt/IBM/openxlC/17.1.1/tools
export TOOLCHAIN_TYPE="clang"
export CC=ibm-clang_r
export CXX=ibm-clang++_r
fi
# J9 JDK14 builds seem to be chewing up more RAM than the others, so restrict it
# Ref: https://github.com/AdoptOpenJDK/openjdk-infrastructure/issues/1151
if [ "$JAVA_FEATURE_VERSION" -ge 14 ]; then
Expand Down
2 changes: 1 addition & 1 deletion sbin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ configureReproducibleBuildParameter() {

# Ensure reproducible and comparable binary with a unique build user identifier
addConfigureArg "--with-build-user=" "admin"
if [ "${BUILD_CONFIG[OS_KERNEL_NAME]}" == "aix" ]; then
if [ "${BUILD_CONFIG[OS_KERNEL_NAME]}" == "aix" ] && [ "${BUILD_CONFIG[OPENJDK_FEATURE_NUMBER]}" -lt 22 ]; then
addConfigureArg "--with-extra-cflags=" "-qnotimestamps"
addConfigureArg "--with-extra-cxxflags=" "-qnotimestamps"
fi
Expand Down

0 comments on commit 738e41c

Please sign in to comment.