mirror of
https://git.yoctoproject.org/poky
synced 2026-04-13 05:02:24 +02:00
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. (From OE-Core rev: f2ff90eb7d27a2f69f5948fa8c301de30f5c8132) Signed-off-by: Matt Madison <matt@madison.systems> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
020915eb9b
commit
3ffafcd9cf
@@ -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}"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user