sudo: set CFLAGS for build mksigname and mksiglist
authorKang Kai <kai.kang@windriver.com>
Tue, 21 May 2013 09:11:58 +0000 (17:11 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 24 May 2013 13:14:45 +0000 (14:14 +0100)
commitb51cd46eb32987c14cddd772a16b281a2010127d
tree4972b0ebe75a2032ea62e3549f94af27d0497815
parentca0422c220a4deb329a7001d7d961e1c4b872eed
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>
meta/recipes-extended/sudo/sudo.inc