eddd4c3601
ldconfig is run during rocm-opencl package installation. Installing libamdocl.so in /opt/rocm-xxx/lib exposes all ROCm libraries when /opt/rocm/lib is added to ldconfig. To prevent this, libamdocl.so is now installed in /opt/rocm-xxx/lib/opencl. ldconfig will use the updated path, limiting exposure to only libamdocl.so library. Co-authored-by: raramakr <raramakr@amd.com>
4 lines
178 B
Plaintext
4 lines
178 B
Plaintext
INSTALL_PATH=$RPM_INSTALL_PREFIX0
|
|
|
|
echo ${INSTALL_PATH}/@CMAKE_INSTALL_LIBDIR@/@AMDOCL_INSTALL_LIBDIR@ > /@CMAKE_INSTALL_SYSCONFDIR@/ld.so.conf.d/10-rocm-opencl.conf && ldconfig
|