Files
rocm-systems/opencl/packaging/rocm-ocl-icd.rpm_postun
T
Ranjith Ramakrishnan cb625e8fb2 SWDEV-310152 - ldconfig should be run from each components providing shared library, since rpath will be removed from binaries and libraries
Revert "SWDEV-310152 - Remove ldconfig from rocm-ocl-icd package"

This reverts commit 0f5c2f0ba8.

Change-Id: Id07f4c8b2915c4ed7937094087ddba8402444da9
2022-11-23 13:03:40 -05:00

9 lines
295 B
Plaintext

if [ $1 -eq 0 ]; then
# Remove rocm-opencl.conf during remove/uninstall operation
rm -f /@CMAKE_INSTALL_SYSCONFDIR@/ld.so.conf.d/10-rocm-opencl.conf && ldconfig
fi
# Remove icd file for uninstall and upgrade operation
rm -f /@CMAKE_INSTALL_SYSCONFDIR@/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@