diff options
| author | Andrea Adami <andrea.adami@gmail.com> | 2018-09-25 22:27:32 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2018-09-25 22:24:15 -0700 |
| commit | db89a0df16bf0dbf9b565c844a5f4202ffb1aad7 (patch) | |
| tree | 58f0e364d32ad9a858096b82f86eea556a09c4ff | |
| parent | 238c1e3bee78ea18b66778569c3bf2521556be64 (diff) | |
| download | meta-openembedded-db89a0df16bf0dbf9b565c844a5f4202ffb1aad7.tar.gz | |
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>
| -rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc index 6342be0b17..be01c2f58d 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" | |||
| 75 | KLIBC_ARCH_powerpc64 = "ppc64" | 75 | KLIBC_ARCH_powerpc64 = "ppc64" |
| 76 | THIS_LIBKLIBC = "libklibc (= ${PV}-${PR})" | 76 | THIS_LIBKLIBC = "libklibc (= ${PV}-${PR})" |
| 77 | 77 | ||
| 78 | GCCPIE ?= "" | ||
| 78 | SECURITY_LDFLAGS = "${@'-z relro -z now -pie' if '${GCCPIE}' else ''}" | 79 | SECURITY_LDFLAGS = "${@'-z relro -z now -pie' if '${GCCPIE}' else ''}" |
| 79 | SECURITY_LDFLAGS_mips = "" | 80 | SECURITY_LDFLAGS_mips = "" |
| 80 | SECURITY_LDFLAGS_mips64 = "" | 81 | SECURITY_LDFLAGS_mips64 = "" |
