Skip to content

Commit 5815793

Browse files
committed
The rpath-fix should be applied to the real library not to the symlink.
If applied to the symlink, the symlink is changed to a copy of the file and the rpath of the original library file is not fixed.
1 parent 1ce0c7a commit 5815793

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pkgs/hypre.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,14 @@ build_stages:
112112
mode: update
113113
extra: ["--enable-shared"]
114114

115+
### needs to fix rpath on the real library not the link
115116
- when: platform == 'linux'
116117
name: rpath-fix
117118
after: install
118119
handler: bash
119120
bash: |
120-
oldRPath=$(${PATCHELF} --print-rpath ${ARTIFACT}/lib/libHYPRE.so)
121-
${PATCHELF} --set-rpath ${oldRPath}:${ARTIFACT}/lib:${BLAS_DIR}/lib:${LAPACK_DIR}/lib:${MPI_DIR}/lib ${ARTIFACT}/lib/libHYPRE.so
121+
oldRPath=$(${PATCHELF} --print-rpath ${ARTIFACT}/lib/libHYPRE-*.so)
122+
${PATCHELF} --set-rpath ${oldRPath}:${ARTIFACT}/lib:${BLAS_DIR}/lib:${LAPACK_DIR}/lib:${MPI_DIR}/lib ${ARTIFACT}/lib/libHYPRE-*.so
122123
123124
- when: platform != 'linux'
124125
name: rpath-fix

0 commit comments

Comments
 (0)