Patchwork sudo: disable SSP for auxiliary build tools mksiglist and mksigname

login
register
mail settings
Submitter Tomas Frydrych
Date April 27, 2013, 8:43 a.m.
Message ID <1367052218-8320-1-git-send-email-tf+lists.yocto@r-finger.com>
Download mbox | patch
Permalink /patch/48965/
State Accepted
Commit ad9a9c6e6b4f00bc47449bbe8c85777ea7c89b88
Headers show

Comments

Tomas Frydrych - April 27, 2013, 8:43 a.m.
From: Tomas Frydrych <tomas@sleepfive.com>

The do_compile_prepend() fragment ensures that the non-installable build
tools mksiglist and mksigname are built using the BUILD_CC, but if the the
BUILD_CC does not support SSP and the cross compiler does, the build fails
due to the SSP flags set in the Makefile. Ensuring that SSP is not enabled
when building these tools prevents this from happening.

Signed-off-by: Tomas Frydrych <tomas@sleepfive.com>
---
 meta/recipes-extended/sudo/sudo.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-extended/sudo/sudo.inc b/meta/recipes-extended/sudo/sudo.inc
index e778485..35da367 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 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 CPPFLAGS="$BUILD_CPPFLAGS -I${S}/include -I${S} -I${B}"  -C compat mksigname mksiglist
 }
 
 # Explicitly create ${localstatedir}/lib before do_install to ensure