diff --git a/recipe/build.sh b/recipe/build.sh index 7abfadf..0a1b9d0 100644 --- a/recipe/build.sh +++ b/recipe/build.sh @@ -25,7 +25,7 @@ for i in `ls`; do ln -s ${PREFIX}/${targetsDir}/$j ${PREFIX}/$j if [[ $j =~ \.so\. ]]; then - patchelf --set-rpath '$ORIGIN' ${PREFIX}/${targetsDir}/$j + patchelf --set-rpath '$ORIGIN' --force-rpath ${PREFIX}/${targetsDir}/$j fi done fi diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 7de4d81..489b633 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -24,7 +24,7 @@ source: sha256: 535f226462c1f5025e054f7f76dd55573b6c59bdc734b314df554085b9c782ed # [win] build: - number: 0 + number: 1 binary_relocation: false skip: true # [osx] diff --git a/recipe/test-rpath.sh b/recipe/test-rpath.sh index 16ee3b4..16ad3a7 100644 --- a/recipe/test-rpath.sh +++ b/recipe/test-rpath.sh @@ -11,7 +11,11 @@ for lib in `find ${PREFIX}/${targetsDir}/lib -type f`; do rpath=$(patchelf --print-rpath $lib) echo "$lib rpath: $rpath" - [[ $rpath == "\$ORIGIN" ]] || errors+="$lib\n" + if [[ $rpath != "\$ORIGIN" ]]; then + errors+="$lib\n" + elif [[ $(objdump -x ${lib} | grep "PATH") == *"RUNPATH"* ]]; then + errors+="$lib\n" + fi done if [[ $errors ]]; then