Skip to contentSkip to conversation

Fix sudo compile error

PATCH New Kai Kang 1 participant 2 messages Aug 7, 2013

lore
Share & tools
lore

Kai Kang

author
#0 lore raw

cover Fix sudo compile error

The following changes since commit f63e7f4323368c0d6fe7a1d44393a7e15652d4f2:

subversion: Add patch to use neon 0.30 (2013-08-07 07:43:47 +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

Kai Kang (1):
sudo: quote BUILD_CC

 meta/recipes-extended/sudo/sudo.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
1.8.1.2
author
#1 lore raw

PATCH 1/1 sudo: quote BUILD_CC

BUILD_CC is assigned to CC when do compile. If BUILD_CC has multi-items such as "ccache gcc", compilation fails with:

make: *** No rule to make target `gcc'. Stop.

Double quote BUILD_CC to avoid this error.

---
 meta/recipes-extended/sudo/sudo.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/sudo/sudo.inc +1 -1
index ef2367a..e77c901 100644
@@ -26,7 +26,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 CFLAGS="$BUILD_CFLAGS" 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.8.1.2