5f2ff60644
When built statically, runc try to link against Scrt1.o which is not provided by uClibc ARM toolchain for static build only. [...]arm-buildroot-linux-uclibcgnueabi/bin/ld: cannot find Scrt1.o: No such file or directory collect2: error: ld returned 1 exit status On ARM, Go forces the use of -pie, for some reason: pie := (goarch == "arm" && goos == "linux") || goos == "android" if pie { // we need to use -pie for Linux/ARM to get accurate imported sym cgoLDFLAGS = append(cgoLDFLAGS, "-pie") } For this reason, add a dependency on BR2_TOOLCHAIN_SUPPORTS_PIE for ARM CPUs to disable Go for such toolchains. While at it, rewrap Go dependencies. [1] http://lists.busybox.net/pipermail/buildroot/2016-July/167206.html Signed-off-by: Romain Naour <romain.naour@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Christian Stewart <christian@paral.in> Tested-by: Christian Stewart <christian@paral.in> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
18 lines
594 B
Plaintext
18 lines
594 B
Plaintext
config BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS
|
|
bool
|
|
default y
|
|
depends on (BR2_arm && BR2_TOOLCHAIN_SUPPORTS_PIE) || BR2_aarch64 \
|
|
|| BR2_i386 || BR2_x86_64 || BR2_powerpc64 || BR2_powerpc64le \
|
|
|| BR2_mips64 || BR2_mips64el
|
|
depends on !BR2_ARM_CPU_ARMV4
|
|
# MIPS R6 support in Go has not yet been developed.
|
|
depends on !BR2_mips_64r6
|
|
|
|
config BR2_PACKAGE_HOST_GO_CGO_LINKING_SUPPORTS
|
|
bool
|
|
default y
|
|
depends on BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS
|
|
# Go doesn't support CGO linking on MIPS64x platforms
|
|
# See: https://github.com/karalabe/xgo/issues/46
|
|
depends on !BR2_mips64 && !BR2_mips64el
|