summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sudo/sudo.inc
diff options
context:
space:
mode:
authorKang Kai <kai.kang@windriver.com>2013-05-21 17:11:58 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-24 14:14:45 +0100
commitab31f43071e86d516dc9d0c260b4695c776a5e6e (patch)
treecb32358d10f66f95e39be033f375d94dd4b2b51f /meta/recipes-extended/sudo/sudo.inc
parentb5044c3a542929474dd9772692ec63a7151244ef (diff)
downloadpoky-ab31f43071e86d516dc9d0c260b4695c776a5e6e.tar.gz
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. (From OE-Core rev: 6022e81570b80232f272a1aa474e8ced3a089382) Signed-off-by: Kang Kai <kai.kang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/sudo/sudo.inc')
-rw-r--r--meta/recipes-extended/sudo/sudo.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-extended/sudo/sudo.inc b/meta/recipes-extended/sudo/sudo.inc
index 35da3673e1..9dcb677458 100644
--- a/meta/recipes-extended/sudo/sudo.inc
+++ b/meta/recipes-extended/sudo/sudo.inc
@@ -23,7 +23,7 @@ do_configure_prepend () {
23 23
24# mksigname/mksiglist are used on build host to generate source files 24# mksigname/mksiglist are used on build host to generate source files
25do_compile_prepend () { 25do_compile_prepend () {
26 oe_runmake SSP_CFLAGS="" SSP_LDFLAGS="" CC=$BUILD_CC CPPFLAGS="$BUILD_CPPFLAGS -I${S}/include -I${S} -I${B}" -C compat mksigname mksiglist 26 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
27} 27}
28 28
29# Explicitly create ${localstatedir}/lib before do_install to ensure 29# Explicitly create ${localstatedir}/lib before do_install to ensure