[oe-commits] [meta-openembedded] 05/26: klibc.inc: lazy assign GCCPIE in case security_flags.inc was not included

git at git.openembedded.org git at git.openembedded.org
Fri Sep 28 06:18:30 UTC 2018


This is an automated email from the git hooks/post-receive script.

khem pushed a commit to branch master
in repository meta-openembedded.

commit db89a0df16bf0dbf9b565c844a5f4202ffb1aad7
Author: Andrea Adami <andrea.adami at gmail.com>
AuthorDate: Tue Sep 25 22:27:32 2018 +0200

    klibc.inc: lazy assign GCCPIE in case security_flags.inc was not included
    
    fix build error (GCCPIE is unset):
    
    EXTRA_KLIBCAFLAGS=${SECURITY_CFLAGS} -Wa,--noexecstack
    EXTRA_KLIBCLDFLAGS=${@-z relro -z now -pie if  else } -z noexecstack
    | make: invalid option -- 'z'
    | make: invalid option -- ' '
    
    Signed-off-by: Andrea Adami <andrea.adami at gmail.com>
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 meta-initramfs/recipes-devtools/klibc/klibc.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc
index 6342be0..be01c2f 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc.inc
+++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc
@@ -75,6 +75,7 @@ KLIBC_ARCH_powerpc = "ppc"
 KLIBC_ARCH_powerpc64 = "ppc64"
 THIS_LIBKLIBC = "libklibc (= ${PV}-${PR})"
 
+GCCPIE ?= ""
 SECURITY_LDFLAGS = "${@'-z relro -z now -pie' if '${GCCPIE}' else ''}"
 SECURITY_LDFLAGS_mips = ""
 SECURITY_LDFLAGS_mips64 = ""

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list