mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Issue #4366: Fix building extensions on all platforms when --enable-shared is used.
This commit is contained in:
		
							parent
							
								
									3103631f66
								
							
						
					
					
						commit
						643238eb53
					
				
					 2 changed files with 6 additions and 4 deletions
				
			
		|  | @ -247,11 +247,10 @@ def finalize_options(self): | ||||||
|                 # building python standard extensions |                 # building python standard extensions | ||||||
|                 self.library_dirs.append('.') |                 self.library_dirs.append('.') | ||||||
| 
 | 
 | ||||||
|         # for extensions under Linux or Solaris with a shared Python library, |         # For building extensions with a shared Python library, | ||||||
|         # Python's library directory must be appended to library_dirs |         # Python's library directory must be appended to library_dirs | ||||||
|         sysconfig.get_config_var('Py_ENABLE_SHARED') |         # See Issues: #1600860, #4366 | ||||||
|         if (sys.platform.startswith(('linux', 'gnu', 'sunos')) |         if (sysconfig.get_config_var('Py_ENABLE_SHARED')): | ||||||
|             and sysconfig.get_config_var('Py_ENABLE_SHARED')): |  | ||||||
|             if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")): |             if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")): | ||||||
|                 # building third party extensions |                 # building third party extensions | ||||||
|                 self.library_dirs.append(sysconfig.get_config_var('LIBDIR')) |                 self.library_dirs.append(sysconfig.get_config_var('LIBDIR')) | ||||||
|  |  | ||||||
|  | @ -71,6 +71,9 @@ Core and Builtins | ||||||
| Library | Library | ||||||
| ------- | ------- | ||||||
| 
 | 
 | ||||||
|  | - Issue #4366: Fix building extensions on all platforms when --enable-shared | ||||||
|  |   is used. | ||||||
|  | 
 | ||||||
| - Issue #18950: Fix miscellaneous bugs in the sunau module. | - Issue #18950: Fix miscellaneous bugs in the sunau module. | ||||||
|   Au_read.readframes() now updates current file position and reads correct |   Au_read.readframes() now updates current file position and reads correct | ||||||
|   number of frames from multichannel stream.  Au_write.writeframesraw() now |   number of frames from multichannel stream.  Au_write.writeframesraw() now | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Antoine Pitrou
						Antoine Pitrou