Skip to contentSkip to conversation

fix sudo compile failure

PATCH New Kang Kai 1 participant 2 messages May 21, 2013

lore
Share & tools
lore

Kang Kai

author
#0 lore raw

cover fix sudo compile failure

The following changes since commit 6271ac326d08fb3e9b4c2008b796233ee11a83e4:

zlib: put shared libraries in base_libdir (2013-05-21 00:18:46 +0100)

are available in the git repository at:
git://git.pokylinux.org/poky-contrib kangkai/sudo
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/sudo

Kang Kai (1):
sudo: set CFLAGS for build mksigname and mksiglist

 meta/recipes-extended/sudo/sudo.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Signature · 1 line
1.7.5.4
author
#1 lore raw

PATCH 1/1 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.

---
 meta/recipes-extended/sudo/sudo.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
meta/recipes-extended/sudo/sudo.inc +1 -1
index 35da367..9dcb677 100644
@@ -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
Signature · 1 line
1.7.5.4