Skip to content

Commit 90f3e5e

Browse files
authored
Fix build for R-4.2 (#117)
or other systems without openssl.pc
1 parent f3bf9c0 commit 90f3e5e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Makevars.ucrt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
PKG_CPPFLAGS = -I./lib -D_WEBSOCKETPP_CPP11_THREAD_
2-
3-
ifeq (,$(shell pkg-config --version 2>/dev/null))
2+
PKG_LIBS = $(shell pkg-config --libs openssl)
3+
ifeq ($(PKG_LIBS),)
44
PKG_LIBS = -lssl -lcrypto -lz -lws2_32 -lgdi32 -lcrypt32
55
else
66
PKG_CPPFLAGS += $(shell pkg-config --cflags openssl)
7-
PKG_LIBS = $(shell pkg-config --libs openssl)
87
endif
9-

0 commit comments

Comments
 (0)