mirror of
				https://github.com/python/cpython.git
				synced 2025-10-25 02:43:41 +00:00 
			
		
		
		
	Added 'runtime_library_dirs' parameter to 'link_*()' methods, and warn that
we don't know what to do with it when we see it. Call '_fix_object_args()' and/or '_fix_lib_args()' as appropriate, rather than just '_fix_link_args()'.
This commit is contained in:
		
							parent
							
								
									e21dabe2e0
								
							
						
					
					
						commit
						2f557a2ec4
					
				
					 1 changed files with 11 additions and 6 deletions
				
			
		|  | @ -253,8 +253,7 @@ def create_static_lib (self, | |||
|                            extra_preargs=None, | ||||
|                            extra_postargs=None): | ||||
| 
 | ||||
|         (objects, output_dir) = \ | ||||
|             self._fix_link_args (objects, output_dir, takes_libs=0) | ||||
|         (objects, output_dir) = self._fix_object_args (objects, output_dir) | ||||
|         output_filename = \ | ||||
|             self.library_filename (output_libname, output_dir=output_dir) | ||||
| 
 | ||||
|  | @ -279,6 +278,7 @@ def link_shared_lib (self, | |||
|                          output_dir=None, | ||||
|                          libraries=None, | ||||
|                          library_dirs=None, | ||||
|                          runtime_library_dirs=None, | ||||
|                          debug=0, | ||||
|                          extra_preargs=None, | ||||
|                          extra_postargs=None): | ||||
|  | @ -299,16 +299,21 @@ def link_shared_object (self, | |||
|                             output_dir=None, | ||||
|                             libraries=None, | ||||
|                             library_dirs=None, | ||||
|                             runtime_library_dirs=None, | ||||
|                             debug=0, | ||||
|                             extra_preargs=None, | ||||
|                             extra_postargs=None): | ||||
| 
 | ||||
|         (objects, output_dir, libraries, library_dirs) = \ | ||||
|             self._fix_link_args (objects, output_dir, takes_libs=1, | ||||
|                                  libraries=libraries, library_dirs=library_dirs) | ||||
|         (objects, output_dir) = self._fix_object_args (objects, output_dir) | ||||
|         (libraries, library_dirs, runtime_library_dirs) = \ | ||||
|             self._fix_lib_args (libraries, library_dirs, runtime_library_dirs) | ||||
| 
 | ||||
|         if self.runtime_library_dirs: | ||||
|             self.warn ("I don't know what to do with 'runtime_library_dirs': " | ||||
|                        + str (runtime_library_dirs)) | ||||
|          | ||||
|         lib_opts = gen_lib_options (self, | ||||
|                                     library_dirs, self.runtime_library_dirs, | ||||
|                                     library_dirs, runtime_library_dirs, | ||||
|                                     libraries) | ||||
|         if type (output_dir) not in (StringType, NoneType): | ||||
|             raise TypeError, "'output_dir' must be a string or None" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Greg Ward
						Greg Ward