Ensure -DUSE_PERLIO gets into Config's ccflags when using dmake on Windows
authorSteve Hay <steve.m.hay@googlemail.com>
Tue, 7 May 2013 07:44:45 +0000 (08:44 +0100)
committerSteve Hay <steve.m.hay@googlemail.com>
Tue, 7 May 2013 07:44:45 +0000 (08:44 +0100)
The -DUSE_PERLIO flag was being used to build perl itself, but amazingly
didn't end up in Config's ccflags, potentially causing trouble later when
building XS extensions. (The problem isn't new: it's been this way ever
since PerlIO support for Windows was added by e601c439, way back in
November 2000.)

win32/makefile.mk

index 1a0872e..1831393 100644 (file)
@@ -350,6 +350,10 @@ ARCHNAME   = MSWin32-$(ARCHITECTURE)
 .ENDIF
 .ENDIF
 
+.IF "$(USE_PERLIO)" == "define"
+BUILDOPT       += -DUSE_PERLIO
+.ENDIF
+
 .IF "$(USE_ITHREADS)" == "define"
 ARCHNAME       !:= $(ARCHNAME)-thread
 .ENDIF