Skip to content

Commit

Permalink
build: fix openldap build with libcurl as it requires lpthread
Browse files Browse the repository at this point in the history
  • Loading branch information
JCMais committed Dec 26, 2024
1 parent d2a21c9 commit 923709b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/ci/build-libcurl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ fi

# https://github.com/curl/curl/pull/1427#issuecomment-295783852
# The detection for ldl was broken for libcurl < 7.54.1
# pthread is only needed if using OpenSSL >= 1.1.0, however we are just addind it anyway as required
# no harm done
# pthread is only needed if using OpenSSL >= 1.1.0 or when building OpenLDAP.
# we are not checking for OpenSSL tho, as there is no harm on adding it anyway.
is_less_than_7_54_1=0
(printf '%s\n%s' "7.54.1" "$1" | $gsort -CV) || is_less_than_7_54_1=$?

if [ "$is_less_than_7_54_1" == "1" ]; then
if [[ "$is_less_than_7_54_1" == "1" || ! -z "$OPENLDAP_BUILD_FOLDER" ]]; then
LIBS="$LIBS -ldl -lpthread"
fi

Expand Down

0 comments on commit 923709b

Please sign in to comment.