path: root/meta/recipes-extended/sudo
diff options
authorKang Kai <>2013-05-21 17:11:58 +0800
committerRichard Purdie <>2013-05-24 14:07:02 +0100
commit6022e81570b80232f272a1aa474e8ced3a089382 (patch)
treee8bfbbddc0aa3ae6629d9500928bad4871d48f6f /meta/recipes-extended/sudo
parentb976a332cf24aad18141eafbbe5cd22cfbb91752 (diff)
sudo: set CFLAGS for build mksigname and mksiglist
mksigname and mksiglist are compiled by BUILD_CC for build host. When there are some options in CFLAGS that BUILD_CC doesn't support, compilation fails. Build for arm on a x86 host, if option "-mapcs-frame" is provided, error occurs with: | cc1: error: unrecognized command line option "-mapcs-frame" Pass BUILD_CFLAGS to CFLAGS to fix that kind of failure. Signed-off-by: Kang Kai <> Signed-off-by: Saul Wold <>
Diffstat (limited to 'meta/recipes-extended/sudo')
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-extended/sudo/ b/meta/recipes-extended/sudo/
index 35da3673e1..9dcb677458 100644
--- a/meta/recipes-extended/sudo/
+++ b/meta/recipes-extended/sudo/
@@ -23,7 +23,7 @@ do_configure_prepend () {
# mksigname/mksiglist are used on build host to generate source files
do_compile_prepend () {
- oe_runmake SSP_CFLAGS="" SSP_LDFLAGS="" CC=$BUILD_CC CPPFLAGS="$BUILD_CPPFLAGS -I${S}/include -I${S} -I${B}" -C compat mksigname mksiglist
+ oe_runmake SSP_CFLAGS="" SSP_LDFLAGS="" CC=$BUILD_CC CFLAGS="$BUILD_CFLAGS" CPPFLAGS="$BUILD_CPPFLAGS -I${S}/include -I${S} -I${B}" -C compat mksigname mksiglist
# Explicitly create ${localstatedir}/lib before do_install to ensure