mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
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@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
238c1e3bee
commit
db89a0df16
|
|
@ -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 = ""
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user