gcc is hardcoded in mingw32/cygwin compiler
Hi, when playing with cross compiling, I noticed that "gcc" is hardcoded in the mingw32 and cygwin compiler classes. I'd like them to be adjustable with environment variables CC, CXX etc. like in the unixccompiler.py class. I attached a patch that works for me(tm), but there might be a better way using already existing methods in sysconfig.py. The command line I use under linux for bdist_wininst is: CC=/usr/bin/i586-mingw32msvc-gcc \ CCSHARED=/usr/bin/i586-mingw32msvc-gcc \ CXX=/usr/bin/i586-mingw32msvc-g++ \ LDSHARED="/usr/bin/i586-mingw32msvc-gcc -shared" \ PY_HOST_PLATFORM=nt \ $(PYTHON) setup.py build -c mingw32 bdist_wininst Regards, Bastian -- ,''`. Bastian Kleineidam . calvin (at) debian.org : :' : `. `' GnuPG Schlüssel http://kampfwurst.net/gpgkey.txt `-
participants (2)
-
Bastian Kleineidam
-
Phillip J. Eby