diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/utils.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass index 6bcaf86b05..1965d2f1b4 100644 --- a/meta/classes/utils.bbclass +++ b/meta/classes/utils.bbclass | |||
@@ -312,7 +312,8 @@ create_wrapper () { | |||
312 | cmdname=`basename $cmd`.real | 312 | cmdname=`basename $cmd`.real |
313 | cat <<END >$cmd | 313 | cat <<END >$cmd |
314 | #!/bin/sh | 314 | #!/bin/sh |
315 | exec env $@ \`dirname \$0\`/$cmdname "\$@" | 315 | realpath=\`readlink -fn \$0\` |
316 | exec env $@ \`dirname \$realpath\`/$cmdname "\$@" | ||
316 | END | 317 | END |
317 | chmod +x $cmd | 318 | chmod +x $cmd |
318 | } | 319 | } |