Project

General

Profile

Actions

Backport #4206

closed

failed to set ext option for win32/configure.bat

Added by arton (Akio Tajima) almost 14 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
[ruby-dev:42893]

Description

=begin
win32/configure.bat に対して --enable-tcltk-stubsを与えると以下のエラーになります。
NMAKE : fatal error U1065: オプション '-' は無効です。

次のパッチで修正できます。
--- setup.mak~ Wed Nov 24 16:38:35 2010
+++ setup.mak Sun Dec 26 07:24:13 2010
@@ -24,6 +24,7 @@
CPU = PROCESSOR_LEVEL
CC = cl -nologo
CPP = $(CC) -EP
+CONFIGARG = configure_args

all: -prologue- -generic- -epilogue-
i386-$(OS): -prologue- -i386- -epilogue-
@@ -138,6 +139,7 @@
<<

-generic-: nul

  •   @echo $(CONFIGARG) = $(CONFIGURE_ARGS)>>$(MAKEFILE)
    

!if defined($(ARCH)) || defined($(CPU))
@type << >>$(MAKEFILE)
!if defined($(ARCH))

--- configure.bat~ Fri Jan 25 10:40:46 2008
+++ configure.bat Sun Dec 26 07:22:29 2010
@@ -8,6 +8,7 @@
echo>> ~tmp~.mak $(conf:=/): nul
echo>> ~tmp~.mak @del ~tmp~.mak
echo>> ~tmp~.mak @-$(MAKE) -l$(MAKEFLAGS) -f $(@D)/setup.mak
+set CONFIGURE_ARGS=
:loop
if "%1" == "" goto :end
if "%1" == "--prefix" goto :prefix
@@ -26,7 +27,7 @@
if "%1" == "--extout" goto :extout
if "%1" == "-h" goto :help
if "%1" == "--help" goto :help

  • echo>> ~tmp~.mak "%1" \
  • set CONFIGURE_ARGS=%1 %CONFIGURE_ARGS%
    shift
    goto :loop
    :srcdir
    @@ -95,6 +96,7 @@
    del ~tmp~.mak
    goto :exit
    :end
    +echo>> ~tmp~.mak "CONFIGURE_ARGS=%CONFIGURE_ARGS%"
    echo>> ~tmp~.mak WIN32DIR=$(@D)
    nmake -alf ~tmp~.mak
    :exit
    =end
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0