Skip to content

Commit 9ae3994

Browse files
authored
Use gsl from the system, via pkg-config when available. (#25)
* Use gsl from the system, via pkg-config when available. * Mention src/Makevars.ucrt in ChangeLog.
1 parent c1ab82c commit 9ae3994

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2024-03-25 Tomas Kalibera <[email protected]>
2+
3+
* src/Makevars.ucrt: Use gsl from Rtools >= 42
4+
15
2025-03-23 Dirk Eddelbuettel <[email protected]>
26

37
* DESCRIPTION (Version, Date): Roll micro version and date

src/Makevars.ucrt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
1-
CRT=-ucrt
2-
include Makevars.win
1+
ifeq (,$(shell pkg-config --version 2>/dev/null))
2+
PKG_LIBS = -lgsl -lgslcblas -lm
3+
else
4+
PKG_CPPFLAGS = $(shell pkg-config --cflags gsl)
5+
PKG_LIBS = $(shell pkg-config --libs gsl)
6+
endif
7+
8+
PKG_CPPFLAGS += -I../inst/include
9+

0 commit comments

Comments
 (0)