* [PATCH 0/1] fix sudo compile failure
@ 2013-05-21 9:11 Kang Kai
2013-05-21 9:11 ` [PATCH 1/1] sudo: set CFLAGS for build mksigname and mksiglist Kang Kai
0 siblings, 1 reply; 2+ messages in thread
From: Kang Kai @ 2013-05-21 9:11 UTC (permalink / raw)
To: openembedded-core
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(-)
--
1.7.5.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] sudo: set CFLAGS for build mksigname and mksiglist
2013-05-21 9:11 [PATCH 0/1] fix sudo compile failure Kang Kai
@ 2013-05-21 9:11 ` Kang Kai
0 siblings, 0 replies; 2+ messages in thread
From: Kang Kai @ 2013-05-21 9:11 UTC (permalink / raw)
To: openembedded-core
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>
---
meta/recipes-extended/sudo/sudo.inc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/meta/recipes-extended/sudo/sudo.inc b/meta/recipes-extended/sudo/sudo.inc
index 35da367..9dcb677 100644
--- a/meta/recipes-extended/sudo/sudo.inc
+++ b/meta/recipes-extended/sudo/sudo.inc
@@ -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
--
1.7.5.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-21 9:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-21 9:11 [PATCH 0/1] fix sudo compile failure Kang Kai
2013-05-21 9:11 ` [PATCH 1/1] sudo: set CFLAGS for build mksigname and mksiglist Kang Kai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox