- when compiling on windows, override CC=gcc with CC=..../cl_wrapper.pl
and use the Python.h in the lib/windows/python/include directory. MSVC++ doesn't like linking with a gcc compiled frozen library.
This commit is contained in:
parent
45b243ac47
commit
76f4ae72f3
|
@ -26,6 +26,11 @@ def makemakefile(outfp, makevars, files, target):
|
|||
outfp.write("%s=%s\n" % (key, makevars[key]))
|
||||
|
||||
outfp.write("\n\ninclude nan_definitions.mk\n")
|
||||
outfp.write("ifeq ($(OS),windows)\n")
|
||||
outfp.write(" CC=$(NANBLENDERHOME)/source/tools/cygwin/cl_wrapper.pl\n")
|
||||
outfp.write(" CFLAGS=-I../../../../lib/windows/python/include/python2.2/ $(OPT)\n")
|
||||
outfp.write("endif\n")
|
||||
|
||||
outfp.write("\nall: %s\n\n" % libtarget)
|
||||
|
||||
deps = []
|
||||
|
|
Loading…
Reference in New Issue