Lines Matching +full:mingw32 +full:- +full:make
5 the Mingw32CCompiler class which handles the mingw32 port of GCC (same as
6 cygwin in no-cygwin mode).
14 # - create a def-file for python??.dll
15 # - create an import library using
16 # dlltool --dllname python15.dll --def python15.def \
17 # --output-lib libpython15.a
19 # see also http://starship.python.net/crew/kernr/mingw32/Notes.html
21 # * We put export_symbols in a def-file, and don't use
22 # --export-all-symbols because it doesn't worked reliable in some
30 # see also http://starship.python.net/crew/kernr/mingw32/Notes.html
31 # * mingw32 gcc 2.95.2/ld 2.9.4/dllwrap 0.2.4 works
32 # (ld doesn't support -shared, so we use dllwrap)
34 # - its dllwrap doesn't work, there is a bug in binutils 2.10.90
35 # see also http://sources.redhat.com/ml/cygwin/2000-06/msg01274.html
36 # - using gcc -mdll instead dllwrap doesn't work without -static because
39 # By specifying -static we force ld to link against the import libraries,
44 # (ld supports -shared)
46 # (ld supports -shared)
68 if msc_pos != -1:
122 # gcc -mdll instead of dllwrap
131 # ld_version >= "2.13" support -shared so use it instead of
132 # -mdll -static
134 shared_option = "-shared"
136 shared_option = "-mdll -static"
138 # Hard-code GCC because that's what this is all about.
140 self.set_executables(compiler='gcc -mcygwin -O -Wall',
141 compiler_so='gcc -mcygwin -mdll -O -Wall',
142 compiler_cxx='g++ -mcygwin -O -Wall',
143 linker_exe='gcc -mcygwin',
144 linker_so=('%s -mcygwin %s' %
147 # cygwin and mingw32 need different sets of libraries
150 # (gcc version 2.91.57) -- perhaps something about initialization
164 self.spawn(["windres", "-i", src, "-o", obj])
167 else: # for other files use the C-compiler
169 self.spawn(self.compiler_so + cc_args + [src, '-o', obj] +
187 # handle export symbols by creating a def-file
191 # (The linker doesn't do anything if output is up-to-date.
217 # next add options for def-file and to creating import libraries
221 extra_preargs.extend(["--output-lib", lib_file])
223 extra_preargs.extend(["--def", def_file])
227 #extra_preargs.extend(["-Wl,--out-implib,%s" % lib_file])
228 # for gcc/ld the def-file is specified as any object files
241 extra_preargs.append("-s")
246 None, # export_symbols, we do this in our def-file
250 # -- Miscellaneous methods -----------------------------------------
258 # use normcase to make sure '.rc' is really '.rc' and not '.RC'
276 """ Handles the Mingw32 port of the GNU C compiler to Windows.
278 compiler_type = 'mingw32'
284 # ld_version >= "2.13" support -shared so use it instead of
285 # -mdll -static
287 shared_option = "-shared"
289 shared_option = "-mdll -static"
291 # A real mingw32 doesn't need to specify a different entry point,
292 # but cygwin 2.91.57 in no-cygwin-mode needs it.
294 entry_point = '--entry _DllMain@12'
300 'Cygwin gcc cannot be used with --compiler=mingw32')
302 self.set_executables(compiler='gcc -O -Wall',
303 compiler_so='gcc -mdll -O -Wall',
304 compiler_cxx='g++ -O -Wall',
309 # Maybe we should also append -mthreads, but then the finished
310 # dlls need another dll (mingwm10.dll see Mingw32 docs)
311 # (-mthreads: Support thread-safe exception handling on `Mingw32')
335 - CONFIG_H_OK: all is well, go ahead and compile
336 - CONFIG_H_NOTOK: doesn't look good
337 - CONFIG_H_UNCERTAIN: not sure -- unable to read pyconfig.h
339 'details' is a human-readable string explaining the situation.
347 # "pyconfig.h" check -- should probably be renamed...
399 commands = ['gcc -dumpversion', 'ld -v', 'dllwrap --version']
404 out_string = check_output(['gcc', '-dumpmachine'])