Merge pull request #583 from cgohlke/patch-1

Link openjpeg2 statically on Windows
This commit is contained in:
wiredfool 2014-03-29 08:55:47 -07:00
commit d09637bc55

View File

@ -452,6 +452,8 @@ class pil_build_ext(build_ext):
if feature.jpeg2000:
libs.append(feature.jpeg2000)
defs.append(("HAVE_OPENJPEG", None))
if sys.platform == "win32":
defs.append(("OPJ_STATIC", None))
if feature.zlib:
libs.append(feature.zlib)
defs.append(("HAVE_LIBZ", None))