path: root/meta/recipes-extended
diff options
authorKhem Raj <>2013-03-10 15:05:18 -0700
committerRichard Purdie <>2013-03-23 11:44:09 +0000
commit2ce5b1364ef6eb276352f7170d23dc3492c779f6 (patch)
treec053b8378714e67221070aa032df998f7c86a7c4 /meta/recipes-extended
parent8c9fad86d8bd86f13d61a1a5cd65d12b16a9e0de (diff)
sudo: Compile mksigname and mksiglist for build host
cross compiling sudo doesnt work well since it uses mksigname and mksiglist to generate C sources which are then used in sudo build itself. With this patch now we make sure those hosttools are compiled for build machine. It fixes the build failures like ./mksigname > signame.c /bin/sh: ./mksigname: cannot execute binary file make[1]: *** [signame.c] Error 126 Signed-off-by: Khem Raj <> Signed-off-by: Richard Purdie <>
Diffstat (limited to 'meta/recipes-extended')
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-extended/sudo/ b/meta/recipes-extended/sudo/
index 7721cd57a1..9427b570a8 100644
--- a/meta/recipes-extended/sudo/
+++ b/meta/recipes-extended/sudo/
@@ -21,6 +21,11 @@ do_configure_prepend () {
+# mksigname/mksiglist are used on build host to generate source files
+do_compile_prepend () {
+ oe_runmake CC=$BUILD_CC CPPFLAGS="$BUILD_CPPFLAGS -I../include -I../" -C compat mksigname mksiglist
# Explicitly create ${localstatedir}/lib before do_install to ensure
# the directory is accessible by all users. Otherwise the mkinstalldirs
# script (from sudo) will recursively create ${localstatedir}/lib/sudo