go: define a hidden boolean to specify if CGO linking is supported
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Wed, 6 Jul 2016 08:34:28 +0000 (09:34 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 6 Jul 2016 19:22:46 +0000 (21:22 +0200)
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/go/Config.in.host

index e1b13c0f8e1206a15f2006024b68c8512feac582..d6d35dc3fd7e2fa42646f6ab1c4d0d3789a48444 100644 (file)
@@ -5,3 +5,11 @@ config BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS
        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