Hackable Mercurial: linker_exe and no-cygwin
Matt Mackall
mpm at selenic.com
Mon Apr 23 18:58:42 UTC 2012
On Mon, 2012-04-23 at 00:22 +0300, Eduard-Cristian Stefan wrote:
> On the wiki page:
> Edit c:\hg\hg-python26\Lib\distutils\cygwinccompiler.py
> to remove all references to -mno-cygwin (thanks, GCC!)
>
> In the hg-python26\Lib\distutils\cygwinccompiler.py:
> linker_exe='gcc -mno-cygwin',
>
> Should it be linker_exe='gcc' ?
Here are the changes I made:
@@ -319,11 +319,11 @@
else:
entry_point = ''
- self.set_executables(compiler='gcc -mno-cygwin -O -Wall',
- compiler_so='gcc -mno-cygwin -mdll -O -Wall',
- compiler_cxx='g++ -mno-cygwin -O -Wall',
+ self.set_executables(compiler='gcc -O -Wall',
+ compiler_so='gcc -mdll -O -Wall',
+ compiler_cxx='g++ -O -Wall',
linker_exe='gcc -mno-cygwin',
- linker_so='%s -mno-cygwin %s %s'
+ linker_so='%s %s %s'
% (self.linker_dll, shared_option,
entry_point))
One goal I have is to release a script to build hackable-mercurial from
scratch by downloading the components and applying any necessary tweaks.
The current lines in the build script look like this:
wget -c http://www.python.org/ftp/python/2.6.6/python-2.6.6.msi
wine msiexec /i python-2.6*.msi /qb
# fix gcc breakage (gcc, you suck at backward compat)
sed -i "s/-mno-cygwin //" ../Python26/Lib/distutils/cygwinccompiler.py
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list