From 0929ef213d374b8165e6d9e06ec292a5bcb77197 Mon Sep 17 00:00:00 2001 From: Jeroen Ooms Date: Thu, 25 Jan 2024 21:34:06 +0100 Subject: [PATCH] Fix build for arm64 (#50) --- src/Makevars.ucrt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Makevars.ucrt b/src/Makevars.ucrt index 1a2e101..b511345 100644 --- a/src/Makevars.ucrt +++ b/src/Makevars.ucrt @@ -1,2 +1,8 @@ -CRT=-ucrt -include Makevars.win +# Used on rtools43 and up +PKG_LIBS = $(shell pkg-config --libs gmpxx mpfr) + +# Fallback for older rtools without pkgconfig +ifeq (,$(PKG_LIBS)) + CRT=-ucrt + include Makevars.win +endif