Skip to content

Commit 24ab033

Browse files
committed
Merge pull request #732 from JaroslavHron/jh/hypre-fix
hypre rpath-fix
2 parents 1ce0c7a + 5815793 commit 24ab033

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)