summaryrefslogtreecommitdiff
path: root/sdk.write
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2015-02-26 09:17:13 +0000
committerMorph (on behalf of Adam Coldrick) <adam.coldrick@codethink.co.uk>2015-02-26 09:17:13 +0000
commit212d7e801320a0b73370cdc2c1fa3ed92d8c9106 (patch)
tree40011083b5c39655defe4e900e07eed87e9aa373 /sdk.write
parent2e9bc6da27cf382782ba98cf5f095ba0eb5bb044 (diff)
downloaddefinitions-212d7e801320a0b73370cdc2c1fa3ed92d8c9106.tar.gz
Morph build 620e4e6dd8e242abafdbaeea45ac464e
System branch: master
Diffstat (limited to 'sdk.write')
-rwxr-xr-xsdk.write4
1 files changed, 2 insertions, 2 deletions
diff --git a/sdk.write b/sdk.write
index 3b07ea9d..8d3d2a63 100755
--- a/sdk.write
+++ b/sdk.write
@@ -148,7 +148,7 @@ if [ "$#" != 1 ]; then
exit 1
fi
-TOOLCHAIN_PATH="$1"
+TOOLCHAIN_PATH="$(readlink -f \"$1\")"
sedescape(){
# Escape the passed in string so it can be safely interpolated into
@@ -227,7 +227,7 @@ patch_elves(){
local linker="$4"
local lib_path="$5"
find "$root" \( -path "$inner_sysroot" -prune \) -o -type f \
- -type f -perm +111 \
+ -type f -perm +u=x \
-exec sh -c 'file "$1" | grep -q "ELF"' - {} \; \
-exec "$linker" --library-path "$lib_path" \
"$patchelf" --set-interpreter "$linker" \