We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af1b35f commit 0020779Copy full SHA for 0020779
src/Makevars.win
@@ -1,8 +1,14 @@
1
PKG_CPPFLAGS = -DR_NO_REMAP -DSTRICT_R_HEADERS
2
3
-PKG_LIBS = \
4
- -lgit2 -lpcre -lssh2 -lz -lssl -lcrypto -lgcrypt -lgpg-error \
+ifeq (,$(shell pkg-config --version 2>/dev/null))
+ PKG_LIBS = \
5
+ -lgit2 -lpcre -lpcre -lssh2 -lz -lssl -lcrypto -lgcrypt -lgpg-error \
6
-lwinhttp -lws2_32 -lcrypt32 -lole32 -lrpcrt4
7
+ PKG_CPPFLAGS += -DPCRE_STATIC
8
+else
9
+ PKG_LIBS = $(shell pkg-config --libs libgit2)
10
+ PKG_CPPFLAGS += $(shell pkg-config --cflags libgit2)
11
+endif
12
13
all: clean
14
0 commit comments