mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 18:32:12 +02:00
* I'm not using go or go-dep, so I'm not going to fix it proplerly,
it was just bothering me in world builds
* this is reproducible only with ptest in DISTRO_FEATUREs (for aarch64
issue) and included security_flags.inc, more specifically with the PIE
flags, so alternative work around is:
SECURITY_CFLAGS_pn-go = "${SECURITY_NOPIE_CFLAGS}"
SECURITY_CFLAGS_pn-go-dep = "${SECURITY_NOPIE_CFLAGS}"
(From OE-Core rev: b689c72ad2dc84b8bb55ecbf72d95701707b9bb3)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
25 lines
815 B
BlitzBasic
25 lines
815 B
BlitzBasic
require go-${PV}.inc
|
|
require go-target.inc
|
|
|
|
export GO_TARGET_INSTALL = "cmd"
|
|
export GO_FLAGS = "-a"
|
|
export CC_FOR_TARGET = "${CC}"
|
|
export CXX_FOR_TARGET = "${CXX}"
|
|
|
|
do_compile() {
|
|
export GOBIN="${B}/bin"
|
|
export TMPDIR="$GOTMPDIR"
|
|
export CC=$BUILD_CC
|
|
|
|
cd src
|
|
./make.bash
|
|
cd ${B}
|
|
}
|
|
|
|
# for aarch64 ends with textrel in ${PN}
|
|
# http://errors.yoctoproject.org/Errors/Details/185634/
|
|
# ERROR: QA Issue: ELF binary '/work/aarch64-oe-linux/go/1.9.7-r0/packages-split/go/usr/lib/go/bin/go' has relocations in .text
|
|
# ELF binary '/work/aarch64-oe-linux/go/1.9.7-r0/packages-split/go/usr/lib/go/pkg/tool/linux_arm64/trace' has relocations in .text
|
|
# ELF binary '/work/aarch64-oe-linux/go/1.9.7-r0/packages-split/go/usr/lib/go/pkg/tool/linux_arm64/pprof' has relocations in .text [textrel]
|
|
INSANE_SKIP_${PN} += "textrel"
|