Skip to content

Commit

Permalink
Condition on libcurl version
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Aug 23, 2024
1 parent 993009e commit 536f249
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/Makevars.ucrt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Fallback for older rtools without
PKG_LIBS_CURL = $(shell pkg-config --libs libcurl)
ifeq (,$(PKG_LIBS_CURL))
include Makevars.win
else
PKG_LIBS = $(PKG_LIBS_CURL) -lwinhttp
HAS_CURL_OK = $(shell pkg-config --atleast-version 8.6.0 libcurl && echo "OK")
ifeq ($(HAS_CURL_OK), OK)
PKG_LIBS = $(shell pkg-config --libs libcurl) -lwinhttp
PKG_CPPFLAGS = $(shell pkg-config --cflags libcurl) -DCURL_STATICLIB -DSTRICT_R_HEADERS -DR_NO_REMAP
else
include Makevars.win
endif

0 comments on commit 536f249

Please sign in to comment.