[Distutils] PureMingw32CCompiler (cygwinccompiler.py addition)
Ben Allfree
cm@bldigital.com
Wed Nov 29 08:20:01 2000
This is a multi-part message in MIME format.
--------------437FC20D6156B791E5FEAA83
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hello all,
I just discovered the fantastic work done for abstract compilers. What
great stuff!
I downloaded the CVS snapshot today and added a PureMingw32CCompiler
class to show the correct command line to build DLLs and import
libraries for MinGW32 2.95.2-1 (the current beta). Maybe somebody could
see how to better integrate the changes?
Included in my attachment is the changed distutils/cygwinccompiler.py
and some test programs. The test programs came from the MinGW32
instructions at:
ftp://ftp.nanotech.wisc.edu/pub/khan/gnu-win32/mingw32/snapshots/gcc-2.95.2-1/README
For those that do not know, the current MinGW32 beta supports the
`-shared' directive and an `--out-implib,libxxx.a' directive. DEF files
are no longer needed when building DLLs from object files. As far as I
know, we still have to use `dlltool' to build import libraries from DEF
files when the DLL's object files are not available. But, I'm not even
sure that's supposed to be a compiler function.
Take care,
Ben Allfree
--------------437FC20D6156B791E5FEAA83
Content-Type: application/x-zip-compressed;
name="PureMingw32CCompiler.zip"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="PureMingw32CCompiler.zip"
UEsDBBQAAAAIALm6fClLWUv0PwAAAEMAAAAKAAAAZGxsaGVsbG8uY1POzEvOKU1JVVBKyclJ
Sy7Ry1Di4srMK1HITczMU9DQ5KrmUlBQKCkuSSvNSwbyrUHcotSS0iKgrAGQW8sFAFBLAwQU
AAAACACQunwp7LPzF4MAAADOAAAACAAAAGRsbGZjdC5ojc2xCsIwEMbxPU9xkKWd8gBuUgch
oIiCW8DeFwzEpDSn9PFtiN0dD37/73TwDE/729EObrBWGUPyBHGMhGXKsxSlVxES6HA/ny5X
co4xxjJh7FbVUK80YsFWYwGF1x91Q7VOHLyqvX+nUUJOJJke2wzYtEdg9Rv65MAkRaqnrl79
7gtQSwMEFAAAAAgArbp8KVNkU0JWAAAAXQAAAAgAAABkbGxmY3QuY1POzE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