I would like to compile Perl from source in a Win32 environment as a STATIC library (rather than DLL), using the MinGW port of GCC (not Cygwin, just the bare MinGW from a standard command-prompt shell). I'm writing some C applications that use an embedded Perl interpreter for macros, and I would like to avoid having any DLL dependencies (just have one standalone EXE). I've sucessfully compiled the Perl DLL using MinGW 1.1(though it seems you have to use the 5.8.0 snapshot, the latest standard release doesn't compile with MinGW without some significant modifications). However, I haven't had much luck researching the ability to compile as a static library (apparently this is a weird requirement). I'm mainly just interested in knowing the [url removed, login to view] alterations (or whatever) needed for me to run "dmake" and get a static library. Willingness to provide an actual statically-compiled Perl build would be great. A huge plus would be the ability to provide information about how to also use external modules in this static fashion (if I want to add some Tk stuff or XML parsing abilities to my embedded Perl interpreter, how can I compile all that into the static library used by my C program?). If I'm just absolutely crazy and this is a stupid idea (i.e. the EXE's would be 2GB in size!)... I'd like some detail about why that's the case so I can give up and stop thinking about it!
Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased.
- Windows NT/2000 and the standard command-prompt (no Cygwin or MSYS preferably) - MinGW 1.1 (latest stable version released 9/20/2001) - Perl (I've been using the 5.8.0-RC1 snapshot, but if you can make it work with the latest stable release that'd be great too)