mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	Merge pull request #583 from cgohlke/patch-1
Link openjpeg2 statically on Windows
This commit is contained in:
		
						commit
						d09637bc55
					
				
							
								
								
									
										2
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								setup.py
									
									
									
									
									
								
							| 
						 | 
					@ -452,6 +452,8 @@ class pil_build_ext(build_ext):
 | 
				
			||||||
        if feature.jpeg2000:
 | 
					        if feature.jpeg2000:
 | 
				
			||||||
            libs.append(feature.jpeg2000)
 | 
					            libs.append(feature.jpeg2000)
 | 
				
			||||||
            defs.append(("HAVE_OPENJPEG", None))
 | 
					            defs.append(("HAVE_OPENJPEG", None))
 | 
				
			||||||
 | 
					            if sys.platform == "win32":
 | 
				
			||||||
 | 
					                defs.append(("OPJ_STATIC", None))
 | 
				
			||||||
        if feature.zlib:
 | 
					        if feature.zlib:
 | 
				
			||||||
            libs.append(feature.zlib)
 | 
					            libs.append(feature.zlib)
 | 
				
			||||||
            defs.append(("HAVE_LIBZ", None))
 | 
					            defs.append(("HAVE_LIBZ", None))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user