]> code.ossystems Code Review - openembedded-core.git/commitdiff
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:07:02 +0000 (14:07 +0100)
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 <kai.kang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-extended/sudo/sudo.inc

index 35da3673e1068ed31e75acbaaf3a7cf7888d8c31..9dcb677458f23ee12b3745db3bc7f8aadd97a703 100644 (file)
@@ -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