Fix hidden dependencies for AMDuProfSys
It tries to dlopen libcrypt.so.1 and libstdc++.so.6, so we make sure they are available by adding them to the runpath. Reviewed-by: Aleix Boné <abonerib@bsc.es>
This commit is contained in:
		
							parent
							
								
									d6126501ba
								
							
						
					
					
						commit
						a6dfc267fd
					
				| @ -16,6 +16,7 @@ | ||||
| , libGLU | ||||
| , dbus | ||||
| , rocmPackages | ||||
| , libxcrypt-legacy | ||||
| }: | ||||
| 
 | ||||
| let | ||||
| @ -52,6 +53,7 @@ in | ||||
|       glib | ||||
|       libGL | ||||
|       libGLU | ||||
|       libxcrypt-legacy | ||||
|       xorg.libX11 | ||||
|       xorg.libXext | ||||
|       xorg.libXi | ||||
| @ -74,6 +76,7 @@ in | ||||
|       tar -x -v -C $out --strip-components=1 -f $src | ||||
|       rm $out/bin/AMDPowerProfilerDriverSource.tar.gz | ||||
|       patchelf --replace-needed libroctracer64.so.1 libroctracer64.so $out/bin/ProfileAgents/x64/libAMDGpuAgent.so | ||||
|       patchelf --add-needed libcrypt.so.1 --add-needed libstdc++.so.6 $out/bin/AMDuProfSys | ||||
|       set +x | ||||
|     ''; | ||||
|   } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user