Skip to content

Commit

Permalink
Use openssl from rtools if available (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen authored Jan 25, 2024
1 parent c07c957 commit ff89074
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/Makevars.win
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
OPENSSL_LIBS = $(shell pkg-config --libs openssl)

# Config for legacy rtools without pkgconfig
ifeq (,$(OPENSSL_LIBS))
OPENSSL_LIBS=-L../windows/openssl-$(VERSION)/lib${R_ARCH}${CRT} -lssl -lcrypto -lws2_32 -lgdi32 -lcrypt32
OPENSSL_CFLAGS=-I../windows/openssl-$(VERSION)/include
endif

VERSION = 1.1.1k
PKG_CPPFLAGS = -DS2_USE_EXACTFLOAT -D_USE_MATH_DEFINES -DNDEBUG -DIS_LITTLE_ENDIAN -DOMIT_STRPTIME -I../windows/openssl-$(VERSION)/include -I../src
PKG_LIBS = -Ls2 -ls2static -L../windows/openssl-$(VERSION)/lib${R_ARCH}${CRT} -lssl -lcrypto -lws2_32 -lgdi32 -lcrypt32
PKG_CPPFLAGS = -DS2_USE_EXACTFLOAT -D_USE_MATH_DEFINES -DNDEBUG -DIS_LITTLE_ENDIAN -DOMIT_STRPTIME $(OPENSSL_CFLAGS) -I../src
PKG_LIBS = -Ls2 -ls2static $(OPENSSL_LIBS)

CXX_STD = CXX11

Expand Down

0 comments on commit ff89074

Please sign in to comment.