mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add GMP support for mswin
This commit is contained in:
parent
391eebfe69
commit
316b44df09
3 changed files with 17 additions and 0 deletions
|
@ -288,6 +288,9 @@ LIBS = user32.lib advapi32.lib shell32.lib ws2_32.lib
|
||||||
!if $(MSC_VER) >= 1400
|
!if $(MSC_VER) >= 1400
|
||||||
LIBS = $(LIBS) iphlpapi.lib
|
LIBS = $(LIBS) iphlpapi.lib
|
||||||
!endif
|
!endif
|
||||||
|
!if defined(USE_GMP)
|
||||||
|
LIBS = $(LIBS) gmp.lib
|
||||||
|
!endif
|
||||||
LIBS = $(LIBS) imagehlp.lib shlwapi.lib bcrypt.lib $(EXTLIBS)
|
LIBS = $(LIBS) imagehlp.lib shlwapi.lib bcrypt.lib $(EXTLIBS)
|
||||||
!endif
|
!endif
|
||||||
!if !defined(MISSING)
|
!if !defined(MISSING)
|
||||||
|
@ -904,6 +907,9 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
|
||||||
!if "$(EXTSTATIC)" == "static"
|
!if "$(EXTSTATIC)" == "static"
|
||||||
#define EXTSTATIC 1
|
#define EXTSTATIC 1
|
||||||
!endif
|
!endif
|
||||||
|
!if "$(USE_GMP)" != ""
|
||||||
|
#define USE_GMP 1
|
||||||
|
!endif
|
||||||
#define EXECUTABLE_EXTS $(EXECUTABLE_EXTS)
|
#define EXECUTABLE_EXTS $(EXECUTABLE_EXTS)
|
||||||
#define RUBY_COREDLL "$(RT)"
|
#define RUBY_COREDLL "$(RT)"
|
||||||
#define RUBY_PLATFORM "$(arch)"
|
#define RUBY_PLATFORM "$(arch)"
|
||||||
|
|
|
@ -48,6 +48,7 @@ if "%1" == "--with-git" goto :git
|
||||||
if "%1" == "--without-git" goto :nogit
|
if "%1" == "--without-git" goto :nogit
|
||||||
if "%1" == "--without-ext" goto :witharg
|
if "%1" == "--without-ext" goto :witharg
|
||||||
if "%1" == "--without-extensions" goto :witharg
|
if "%1" == "--without-extensions" goto :witharg
|
||||||
|
if "%1" == "--with-gmp" goto :gmp
|
||||||
if "%opt:~0,10%" == "--without-" goto :withoutarg
|
if "%opt:~0,10%" == "--without-" goto :withoutarg
|
||||||
if "%opt:~0,7%" == "--with-" goto :witharg
|
if "%opt:~0,7%" == "--with-" goto :witharg
|
||||||
if "%1" == "-h" goto :help
|
if "%1" == "-h" goto :help
|
||||||
|
@ -210,6 +211,12 @@ goto :loop ;
|
||||||
echo>>confargs.tmp %1 \
|
echo>>confargs.tmp %1 \
|
||||||
shift
|
shift
|
||||||
goto :loop ;
|
goto :loop ;
|
||||||
|
:gmp
|
||||||
|
echo>> ~tmp~.mak "WITH_GMP=yes" \
|
||||||
|
echo>>confargs.tmp %1=1 \
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
goto :loop ;
|
||||||
:witharg
|
:witharg
|
||||||
echo>>confargs.tmp %1=%2\
|
echo>>confargs.tmp %1=%2\
|
||||||
set witharg=1
|
set witharg=1
|
||||||
|
|
|
@ -90,6 +90,10 @@ $(BANG)endif
|
||||||
@echo HAVE_GIT = $(HAVE_GIT)>> $(MAKEFILE)
|
@echo HAVE_GIT = $(HAVE_GIT)>> $(MAKEFILE)
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
!if "$(WITH_GMP)" == "yes"
|
||||||
|
@echo>>$(MAKEFILE) USE_GMP = 1
|
||||||
|
!endif
|
||||||
|
|
||||||
-osname-section-:
|
-osname-section-:
|
||||||
@$(APPEND)
|
@$(APPEND)
|
||||||
@echo # TARGET>>$(MAKEFILE)
|
@echo # TARGET>>$(MAKEFILE)
|
||||||
|
|
Loading…
Reference in a new issue