Skip to content

Commit

Permalink
Avoid downloading gsl at installation time.
Browse files Browse the repository at this point in the history
  • Loading branch information
kalibera committed Aug 14, 2024
1 parent 39880db commit 70a19f9
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/Makevars.ucrt
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
VERSION = 2.7
CRT=-ucrt
RWINLIB = ../windows/gsl-$(VERSION)

PKG_CPPFLAGS = -I $(RWINLIB)/include \

PKG_LIBS = -L $(RWINLIB)/lib$(R_ARCH)${CRT} -lgsl -lgslcblas

all: clean winlibs
ifeq (,$(shell pkg-config --version 2>/dev/null))
PKG_LIBS = -lgsl -lgslcblas -lm
else
PKG_LIBS = $(shell pkg-config --libs gsl)
endif

winlibs:
"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" --vanilla "../tools/winlibs.R" $(VERSION)
all: clean

clean:
rm -f $(SHLIB) $(OBJECTS)

.PHONY: all winlibs clean
.PHONY: all clean

0 comments on commit 70a19f9

Please sign in to comment.