summaryrefslogtreecommitdiff
path: root/win32/Makefile.sub
diff options
context:
space:
mode:
authorU.Nakamura <usa@ruby-lang.org>2022-09-13 15:43:05 +0900
committerU.Nakamura <usa@ruby-lang.org>2022-09-13 15:44:29 +0900
commit316b44df09d3bf9dcabb8e2ce9528c72304c1bd4 (patch)
treebf9d48842e45c0df4af368d2cf156c232fc4fbd4 /win32/Makefile.sub
parent391eebfe6979f72ddff1d086dceb8e415aac0433 (diff)
downloadruby-316b44df09d3bf9dcabb8e2ce9528c72304c1bd4.tar.gz
Add GMP support for mswin
Diffstat (limited to 'win32/Makefile.sub')
-rw-r--r--win32/Makefile.sub6
1 files changed, 6 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 9a6bb47e10..361af556cd 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -288,6 +288,9 @@ LIBS = user32.lib advapi32.lib shell32.lib ws2_32.lib
!if $(MSC_VER) >= 1400
LIBS = $(LIBS) iphlpapi.lib
!endif
+!if defined(USE_GMP)
+LIBS = $(LIBS) gmp.lib
+!endif
LIBS = $(LIBS) imagehlp.lib shlwapi.lib bcrypt.lib $(EXTLIBS)
!endif
!if !defined(MISSING)
@@ -904,6 +907,9 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
!if "$(EXTSTATIC)" == "static"
#define EXTSTATIC 1
!endif
+!if "$(USE_GMP)" != ""
+#define USE_GMP 1
+!endif
#define EXECUTABLE_EXTS $(EXECUTABLE_EXTS)
#define RUBY_COREDLL "$(RT)"
#define RUBY_PLATFORM "$(arch)"