diff options
author | Kai Kang <kai.kang@windriver.com> | 2018-06-14 14:18:03 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-06-15 17:56:24 +0100 |
commit | 95a8753766fb4e594a90a78ec600131ee213a5cc (patch) | |
tree | fd335639ab4fb6546f9fa78fd9512395a0d877f0 /meta/classes/goarch.bbclass | |
parent | 69fd50015628ab037cc75ba2386ade1eb59bef6b (diff) | |
download | poky-95a8753766fb4e594a90a78ec600131ee213a5cc.tar.gz |
goarch.bbclass: set SECURITY_CFLAGS for mips64
When include conf/distro/include/security_flags.inc, NOPIE flags are
still required for mips64 target builds. Otherwise it fails to build
packages such as glide which inherit go.bbclass:
| .../tmp-glibc/work/mips64-wrs-linux/glide/0.13.1-r0/recipe-sysroot-native/usr/bin/mips64-wrs-linux/../../libexec/mips64-wrs-linux/
| gcc/mips64-wrs-linux/7.3.0/ld: .../tmp-glibc/work/mips64-wrs-linux/glide/0.13.1-r0/go-tmp/go-link-518447869/go.o:
| relocation r_mips_26 against `a local symbol' can not be used when making a shared object; recompile with -fPIC`
Use override 'mipsarch' to set SECURITY_CFLAGS for both mips and mips64.
(From OE-Core rev: 98b24e9268dc444356ce8bd9ddfec6adcce5e02a)
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/goarch.bbclass')
-rw-r--r-- | meta/classes/goarch.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/goarch.bbclass b/meta/classes/goarch.bbclass index f54c5169e3..bb36cc8142 100644 --- a/meta/classes/goarch.bbclass +++ b/meta/classes/goarch.bbclass | |||
@@ -35,7 +35,7 @@ COMPATIBLE_HOST_powerpc64 = "null" | |||
35 | COMPATIBLE_HOST_mipsarchn32 = "null" | 35 | COMPATIBLE_HOST_mipsarchn32 = "null" |
36 | ARM_INSTRUCTION_SET = "arm" | 36 | ARM_INSTRUCTION_SET = "arm" |
37 | TUNE_CCARGS_remove = "-march=mips32r2" | 37 | TUNE_CCARGS_remove = "-march=mips32r2" |
38 | SECURITY_CFLAGS_mips = "${SECURITY_NOPIE_CFLAGS}" | 38 | SECURITY_CFLAGS_mipsarch = "${SECURITY_NOPIE_CFLAGS}" |
39 | SECURITY_NOPIE_CFLAGS ??= "" | 39 | SECURITY_NOPIE_CFLAGS ??= "" |
40 | 40 | ||
41 | def go_map_arch(a, d): | 41 | def go_map_arch(a, d): |