Skip to content

Commit

Permalink
Linking to ntdll on msvcrt is dangerous
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Sep 24, 2023
1 parent 0932353 commit f3ca19c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Makevars.win
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ ifeq ($(R_COMPILED_BY),gcc 8.3.0)
PCRE=-lpcre
else
PCRE=-lpcre2-8
NTDLL=-lntdll
endif

PKG_LIBS = \
Expand All @@ -32,7 +33,7 @@ PKG_LIBS = \
-lcairo-gobject -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 ${PCRE} \
-lffi -lpng16 -ljpeg -ltiff -lintl -lz -liconv -lfribidi \
-lusp10 -liphlpapi -lgdiplus -lgdi32 -lole32 -ldnsapi -lws2_32 -luserenv\
-lrpcrt4 -lbcrypt -lmsimg32 -lshlwapi -luuid -lntdll \
-lrpcrt4 -lbcrypt -lmsimg32 -lshlwapi -luuid $(NTDLL) \

#-ld2d1 -ldxguid

2 changes: 1 addition & 1 deletion tools/winlibs.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if(!file.exists("../windows/librsvg/include/librsvg-2.0/librsvg/rsvg.h")){
} else if(getRversion() >= "4.2") {
"https://github.com/r-windows/bundles/releases/download/librsvg-2.50.9/librsvg-2.50.9-ucrt-x86_64.tar.xz"
} else {
"https://github.com/rwinlib/rsvg/archive/refs/tags/2.50.5-2.tar.gz"
"https://github.com/rwinlib/rsvg/archive/v2.50.5.tar.gz"
}
download.file(url, basename(url), quiet = TRUE)
dir.create("../windows", showWarnings = FALSE)
Expand Down

0 comments on commit f3ca19c

Please sign in to comment.