Leon Timmermans wrote:
> Don't think that would work for a2p though without some serious work,
> given that Windows and VMS (and Netware…) are being unique snowflakes
> and the lack of precedents of binary utils. I'm not sure either how to
> proceed if(/when?) we get stuck there.
>
> Leon
---------------------------------------
C:\Documents and Settings\Owner\Desktop\cpan libs\a2p>perl
makefile.pl
Warning: Guessing NAME [a2p] from current directory name.
Generating a nmake-style Makefile
Writing Makefile for a2p
Writing MYMETA.yml and MYMETA.json
C:\Documents and Settings\Owner\Desktop\cpan libs\a2p>nmake
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
cp lib/App/
a2p.pm blib\lib\App\
a2p.pm
cl -c -nologo -GF -W3 -O1 -MD -Zi -DNDEBUG -GL -DWIN32
-D_CONSOLE -DN
O_STRICT -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT
-DPERL_IMPLICIT_SYS -DU
SE_PERLIO -D_USE_32BIT_TIME_T -O1 -MD -Zi -DNDEBUG -GL -DVERSION=\"\"
-DXS_V
ERSION=\"\" "-IC:\perl519\lib\CORE" hash.c
hash.c
cl -c -nologo -GF -W3 -O1 -MD -Zi -DNDEBUG -GL -DWIN32
-D_CONSOLE -DN
O_STRICT -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT
-DPERL_IMPLICIT_SYS -DU
SE_PERLIO -D_USE_32BIT_TIME_T -O1 -MD -Zi -DNDEBUG -GL -DVERSION=\"\"
-DXS_V
ERSION=\"\" "-IC:\perl519\lib\CORE" str.c
str.c
cl -c -nologo -GF -W3 -O1 -MD -Zi -DNDEBUG -GL -DWIN32
-D_CONSOLE -DN
O_STRICT -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT
-DPERL_IMPLICIT_SYS -DU
SE_PERLIO -D_USE_32BIT_TIME_T -O1 -MD -Zi -DNDEBUG -GL -DVERSION=\"\"
-DXS_V
ERSION=\"\" "-IC:\perl519\lib\CORE" util.c
util.c
cl -c -nologo -GF -W3 -O1 -MD -Zi -DNDEBUG -GL -DWIN32
-D_CONSOLE -DN
O_STRICT -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT
-DPERL_IMPLICIT_SYS -DU
SE_PERLIO -D_USE_32BIT_TIME_T -O1 -MD -Zi -DNDEBUG -GL -DVERSION=\"\"
-DXS_V
ERSION=\"\" "-IC:\perl519\lib\CORE" walk.c
walk.c
cl -c -nologo -GF -W3 -O1 -MD -Zi -DNDEBUG -GL -DWIN32
-D_CONSOLE -DN
O_STRICT -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT
-DPERL_IMPLICIT_SYS -DU
SE_PERLIO -D_USE_32BIT_TIME_T -O1 -MD -Zi -DNDEBUG -GL -DVERSION=\"\"
-DXS_V
ERSION=\"\" "-IC:\perl519\lib\CORE" a2p.c
a2p.c
cl -o blib\bin/a2p -nologo -nodefaultlib -debug -opt:ref,icf
-ltcg -lib
path:"c:\perl519\lib\CORE" -machine:x86 hash.obj str.obj util.obj
walk.obj a2p.
obj oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib ad
vapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib
ws2_32.lib
mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib comctl32.lib
msvcrt.lib
cl : Command line warning D4002 : ignoring unknown option '-nodefaultlib'
cl : Command line warning D4002 : ignoring unknown option '-debug'
cl : Command line warning D4002 : ignoring unknown option '-ltcg'
cl : Command line warning D4002 : ignoring unknown option
'-libpath:c:\perl519\l
ib\CORE'
cl : Command line warning D4002 : ignoring unknown option '-machine:x86'
hash.obj : warning LNK4218: non-native module found; restarting link
with /LTCG
LINK : fatal error LNK1181: cannot open input file 'oldnames.lib'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
C:\Documents and Settings\Owner\Desktop\cpan libs\a2p>nmake -n all
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
rem
rem
rem
rem
rem
rem
cl -o blib\bin/a2p -nologo -nodefaultlib -debug -opt:ref,icf
-ltcg -lib
path:"c:\perl519\lib\CORE" -machine:x86 hash.obj str.obj util.obj
walk.obj a2p.
obj oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib ad
vapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib
ws2_32.lib
mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib comctl32.lib
msvcrt.lib
rem
C:\Documents and Settings\Owner\Desktop\cpan libs\a2p>
-------------------------------------------------------
The recipe in the core win32/Makefile is
-------------------------------------------------------
$(X2P) : $(MINIPERL) $(X2P_OBJ) Extensions
$(MINIPERL) -I..\lib ..\x2p\find2perl.PL
$(MINIPERL) -I..\lib ..\x2p\s2p.PL
>>>>> $(LINK32) -subsystem:console -out:$@ @<<
$(LINK_FLAGS) $(LIBFILES) $(X2P_OBJ)
-------------------------------------------------------
But unfortunately I can't think of a EUMM module that makes exes on
Windows. I'll go searching CPAN. Results below
https://metacpan.org/source/CERNEY/Tk-TableMatrix-1.23/pTk/mTk/Tktable/makefile.vc
https://metacpan.org/source/ILYAZ/Math-Pari-2.01080605/libPARI/Makefile.PL
(it has to be easier than this)
win32 perl interp make test compiles an exe at but not EUMM
http://perl5.git.perl.org/perl.git/blob/HEAD:/t/win32/system.t#l107
finally, an EUMM making an exe
makefile.pl but I'm not sure that is
Mingw compatible
https://metacpan.org/source/DOUGM/ExtUtils-Embed-1.14/genmake