mirror of
				https://github.com/rust-lang/cargo.git
				synced 2025-11-03 13:12:53 +00:00 
			
		
		
		
	Fix wrong directories in host_libdir.
This fixes a regression from #7475 where the sysroot_target_libdir leaks into the host libdir. This can cause problems when the dynamic linker does not ignore the target libraries but tries to load them instead. This happens for example when building on x86_64-musl for aarch64-musl.
This commit is contained in:
		
							parent
							
								
									ad3dbe10e1
								
							
						
					
					
						commit
						f917e169ab
					
				@ -101,7 +101,7 @@ impl<'cfg> Compilation<'cfg> {
 | 
				
			|||||||
            root_output: PathBuf::from("/"),
 | 
					            root_output: PathBuf::from("/"),
 | 
				
			||||||
            deps_output: PathBuf::from("/"),
 | 
					            deps_output: PathBuf::from("/"),
 | 
				
			||||||
            host_deps_output: PathBuf::from("/"),
 | 
					            host_deps_output: PathBuf::from("/"),
 | 
				
			||||||
            host_dylib_path: bcx.info(default_kind).sysroot_host_libdir.clone(),
 | 
					            host_dylib_path: bcx.info(CompileKind::Host).sysroot_host_libdir.clone(),
 | 
				
			||||||
            target_dylib_path: bcx.info(default_kind).sysroot_target_libdir.clone(),
 | 
					            target_dylib_path: bcx.info(default_kind).sysroot_target_libdir.clone(),
 | 
				
			||||||
            tests: Vec::new(),
 | 
					            tests: Vec::new(),
 | 
				
			||||||
            binaries: Vec::new(),
 | 
					            binaries: Vec::new(),
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user