summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/utils.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass
index 1965d2f1b4..e103351e34 100644
--- a/meta/classes/utils.bbclass
+++ b/meta/classes/utils.bbclass
@@ -289,7 +289,8 @@ create_cmdline_wrapper () {
cmdname=`basename $cmd`.real
cat <<END >$cmd
#!/bin/sh
-exec \`dirname \$0\`/$cmdname "\$@"
+realpath=\`readlink -fn \$0\`
+exec \`dirname \$realpath\`/$cmdname "\$@"
END
chmod +x $cmd
}