[oe-commits] Khem Raj : sudo: Compile mksigname and mksiglist for build host
git at git.openembedded.org
git at git.openembedded.org
Sat Mar 23 11:48:50 UTC 2013
Module: openembedded-core.git
Branch: master
Commit: 2ce5b1364ef6eb276352f7170d23dc3492c779f6
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=2ce5b1364ef6eb276352f7170d23dc3492c779f6
Author: Khem Raj <raj.khem at gmail.com>
Date: Sun Mar 10 15:05:18 2013 -0700
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 <raj.khem at gmail.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/recipes-extended/sudo/sudo.inc | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/meta/recipes-extended/sudo/sudo.inc b/meta/recipes-extended/sudo/sudo.inc
index 7721cd5..9427b57 100644
--- a/meta/recipes-extended/sudo/sudo.inc
+++ b/meta/recipes-extended/sudo/sudo.inc
@@ -21,6 +21,11 @@ do_configure_prepend () {
fi
}
+# 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
More information about the Openembedded-commits
mailing list