diff --git a/classes/elfwrapper.oeclass b/classes/elfwrapper.oeclass index c8b30ae8..575933f4 100644 --- a/classes/elfwrapper.oeclass +++ b/classes/elfwrapper.oeclass @@ -69,6 +69,8 @@ def image_preprocess_elf_sowrap(d): dirparts = len(os.path.dirname(path).split('/')) relative_root = "/".join([".."] * dirparts) wrapper.write("#!/bin/sh\n") + if file == "make": + wrapper.write("export MAKE=$(dirname $(realpath $0))/%s\n"%(os.path.basename(path))) wrapper.write("$(dirname $(readlink -f $0))/%s%s $(dirname $(readlink -f $0))/%s \"$@\""%( relative_root, ld_so, os.path.basename(dotpath))) os.chmod(path, stat.S_IRWXU|stat.S_IRWXG|stat.S_IROTH|stat.S_IXOTH)