summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rwxr-xr-xmeta/recipes-devtools/icecc-create-env/icecc-create-env/icecc-create-env4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-devtools/icecc-create-env/icecc-create-env/icecc-create-env b/meta/recipes-devtools/icecc-create-env/icecc-create-env/icecc-create-env
index 074c7675c0..3015f4e215 100755
--- a/meta/recipes-devtools/icecc-create-env/icecc-create-env/icecc-create-env
+++ b/meta/recipes-devtools/icecc-create-env/icecc-create-env/icecc-create-env
@@ -42,11 +42,13 @@ fix_rpath ()
42 if ! is_dynamic_elf "$path"; then 42 if ! is_dynamic_elf "$path"; then
43 return 43 return
44 fi 44 fi
45 local new_rpath="`readelf -w -d "$path" | grep RPATH | \ 45 local old_rpath="`$PATCHELF --print-rpath "$path"`"
46 local new_rpath="`echo "$old_rpath" | \
46 sed 's/.*\[\(.*\)\]/\1/g' | \ 47 sed 's/.*\[\(.*\)\]/\1/g' | \
47 sed "s,\\\$ORIGIN,/$origin,g"`" 48 sed "s,\\\$ORIGIN,/$origin,g"`"
48 49
49 if test -n "$new_rpath"; then 50 if test -n "$new_rpath"; then
51 print_debug "Converting RPATH '$old_rpath' -> '$new_rpath'"
50 $PATCHELF --set-rpath "$new_rpath" "$path" 52 $PATCHELF --set-rpath "$new_rpath" "$path"
51 fi 53 fi
52} 54}