[oe-commits] [openembedded-core] 38/44: goarch.bbclass: set SECURITY_CFLAGS for mips64

git at git.openembedded.org git at git.openembedded.org
Fri Jun 15 10:17:56 UTC 2018


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

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 98b24e9268dc444356ce8bd9ddfec6adcce5e02a
Author: Kai Kang <kai.kang at windriver.com>
AuthorDate: Thu Jun 14 14:18:03 2018 +0800

    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.
    
    Signed-off-by: Kai Kang <kai.kang at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/goarch.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/goarch.bbclass b/meta/classes/goarch.bbclass
index f54c516..bb36cc8 100644
--- a/meta/classes/goarch.bbclass
+++ b/meta/classes/goarch.bbclass
@@ -35,7 +35,7 @@ COMPATIBLE_HOST_powerpc64 = "null"
 COMPATIBLE_HOST_mipsarchn32 = "null"
 ARM_INSTRUCTION_SET = "arm"
 TUNE_CCARGS_remove = "-march=mips32r2"
-SECURITY_CFLAGS_mips = "${SECURITY_NOPIE_CFLAGS}"
+SECURITY_CFLAGS_mipsarch = "${SECURITY_NOPIE_CFLAGS}"
 SECURITY_NOPIE_CFLAGS ??= ""
 
 def go_map_arch(a, d):

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


More information about the Openembedded-commits mailing list