Skip to content

Commit

Permalink
Make LIBRARY_PATH generic
Browse files Browse the repository at this point in the history
  • Loading branch information
steelhead31 authored Nov 30, 2023
1 parent 760d94b commit 234d491
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions build-farm/platform-specific-configurations/linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,25 +196,17 @@ then
export PATH=/opt/rh/devtoolset-2/root/usr/bin:$PATH
fi

if [ "${ARCHITECTURE}" == "aarch64" ] || [ "${ARCHITECTURE}" == "x64" ]
then
## Fix For Issue https://github.com/adoptium/temurin-build/issues/3547
## Add Missing Library Path For Ubuntu 22+
if [ -e /etc/os-release ]; then
ID=$(grep "^ID=" /etc/os-release | awk -F'=' '{print $2}')
INT_VERSION_ID=$(grep "^VERSION_ID=" /etc/os-release | awk -F'"' '{print $2}' | awk -F'.' '{print $1}')

if [ "$ID" == "ubuntu" ] && [ "$INT_VERSION_ID" -ge "22" ]; then
if [ "${ARCHITECTURE}" == "x64" ]; then
export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LIBRARY_PATH
else
export LIBRARY_PATH=/usr/lib/aarch64-linux-gnu:$LIBRARY_PATH
fi
fi
## Fix For Issue https://github.com/adoptium/temurin-build/issues/3547
## Add Missing Library Path For Ubuntu 22+
if [ -e /etc/os-release ]; then
ID=$(grep "^ID=" /etc/os-release | awk -F'=' '{print $2}')
INT_VERSION_ID=$(grep "^VERSION_ID=" /etc/os-release | awk -F'"' '{print $2}' | awk -F'.' '{print $1}')
LIB_ARCH=$(uname -m)
if [ "$ID" == "ubuntu" ] && [ "$INT_VERSION_ID" -ge "22" ]; then
export LIBRARY_PATH=/usr/lib/$(uname -m)-linux-gnu:$LIBRARY_PATH
fi
fi


if [ "${ARCHITECTURE}" == "s390x" ]
then
export LANG=C
Expand Down

0 comments on commit 234d491

Please sign in to comment.