Skip to content

Instantly share code, notes, and snippets.

@toshiyukino
Last active December 29, 2015 15:09
Show Gist options
  • Save toshiyukino/7688355 to your computer and use it in GitHub Desktop.
Save toshiyukino/7688355 to your computer and use it in GitHub Desktop.
windowsのsetup.pyでgccエラーになったので調べたらこんな感じでできた。
--- cygwinccompiler.py Thu Nov 28 15:47:59 2013
+++ cygwinccompiler.py_org Tue Mar 8 09:43:14 2011
@@ -319,11 +319,11 @@
else:
entry_point = ''
- self.set_executables(compiler='gcc -O -Wall',
- compiler_so='gcc -mdll -O -Wall',
- compiler_cxx='g++ -O -Wall',
- linker_exe='gcc ',
- linker_so='%s %s %s'
+ self.set_executables(compiler='gcc -mno-cygwin -O -Wall',
+ compiler_so='gcc -mno-cygwin -mdll -O -Wall',
+ compiler_cxx='g++ -mno-cygwin -O -Wall',
+ linker_exe='gcc -mno-cygwin',
+ linker_so='%s -mno-cygwin %s %s'
% (self.linker_dll, shared_option,
entry_point))
# Maybe we should also append -mthreads, but then the finished
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment