From f2ff90eb7d27a2f69f5948fa8c301de30f5c8132 Mon Sep 17 00:00:00 2001 From: Matt Madison Date: Sun, 4 Mar 2018 13:09:33 -0800 Subject: go.bbclass, goarch.bbclass: update SECURITY_CFLAGS With go1.10 the NOPIE flags are only required for MIPS target builds, and are now incompatible for the other architectures. Signed-off-by: Matt Madison Signed-off-by: Ross Burton --- meta/classes/goarch.bbclass | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta/classes/goarch.bbclass') diff --git a/meta/classes/goarch.bbclass b/meta/classes/goarch.bbclass index 5c8ed33b15..f54c5169e3 100644 --- a/meta/classes/goarch.bbclass +++ b/meta/classes/goarch.bbclass @@ -35,6 +35,8 @@ COMPATIBLE_HOST_powerpc64 = "null" COMPATIBLE_HOST_mipsarchn32 = "null" ARM_INSTRUCTION_SET = "arm" TUNE_CCARGS_remove = "-march=mips32r2" +SECURITY_CFLAGS_mips = "${SECURITY_NOPIE_CFLAGS}" +SECURITY_NOPIE_CFLAGS ??= "" def go_map_arch(a, d): import re -- cgit v1.2.3