Skip to content

Commit 80997a5

Browse files
committed
Adjusted compile-options to not bundle OpenSSL on newer SuSE systems due to libpam/openssl incompatability
Ticket: ENT-12528 Changelog: title
1 parent 0ee035a commit 80997a5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

build-scripts/compile-options

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ export PROJECT
3636
# Otherwise, we build it.
3737
if [ x"$SYSTEM_SSL" = x ]
3838
then
39-
# We don't bundle OpenSSL on RHEL 8 (and newer in the future)
40-
if [ "$OS" = "rhel" ] && expr "$OS_VERSION" ">=" "8" >/dev/null
39+
# We don't bundle OpenSSL on some redhat-derived systems due to incompatability with libpam and our openssl.
40+
_OS_MAJOR_VERSION="$(echo "$OS_VERSION" | cut -d. -f1)"
41+
if [[ ( ( "$OS" == "rhel" ) && ( $(( _OS_MAJOR_VERSION >= 8 )) == 1 ) ) ||
42+
( ( "$OS" == "opensuse" || "$OS" == "sles" ) && ( $(( _OS_MAJOR_VERSION >= 15 )) == 1 ) ) ]]
4143
then
4244
SYSTEM_SSL=1
4345
fi

0 commit comments

Comments
 (0)