Skip to content

Commit 3f8f2cd

Browse files
authored
Merge pull request #24261 from JuliaLang/sf/pthreadcurl
Explicitly add `-lpthread` when building curl
2 parents 2a9a35a + c323437 commit 3f8f2cd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

deps/curl.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ endif
1010

1111
CURL_LDFLAGS := $(RPATH_ESCAPED_ORIGIN)
1212

13+
# On older Linuces (those that use OpenSSL < 1.1) we include `libpthread` explicitly.
14+
# It doesn't hurt to include it explicitly elsewhere, so we do so.
15+
ifeq ($(OS),Linux)
16+
CURL_LDFLAGS += -lpthread
17+
endif
18+
1319
$(SRCCACHE)/curl-$(CURL_VER).tar.bz2: | $(SRCCACHE)
1420
$(JLDOWNLOAD) $@ https://curl.haxx.se/download/curl-$(CURL_VER).tar.bz2
1521

0 commit comments

Comments
 (0)