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 <matt@madison.systems> --- meta/classes/go.bbclass | 3 --- meta/classes/goarch.bbclass | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass index 080fb4ae69..90863acbdb 100644 --- a/meta/classes/go.bbclass +++ b/meta/classes/go.bbclass @@ -34,9 +34,6 @@ GOTOOLDIR = "${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go/pkg/tool/${BUILD_GOTUPLE} GOTOOLDIR_class-native = "${STAGING_LIBDIR_NATIVE}/go/pkg/tool/${BUILD_GOTUPLE}" export GOTOOLDIR -SECURITY_CFLAGS = "${SECURITY_NOPIE_CFLAGS}" -SECURITY_LDFLAGS = "" - export CGO_ENABLED ?= "1" export CGO_CFLAGS ?= "${CFLAGS}" export CGO_CPPFLAGS ?= "${CPPFLAGS}" diff --git a/meta/classes/goarch.bbclass b/meta/classes/goarch.bbclass index 5c8ed33b15..eb8b32d35b 100644 --- a/meta/classes/goarch.bbclass +++ b/meta/classes/goarch.bbclass @@ -35,6 +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}" def go_map_arch(a, d): import re -- 2.14.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core