From 0682e9edcb7ca9c92eb40b61a01a12e20f1791b1 Mon Sep 17 00:00:00 2001 From: Amy Fong Date: Fri, 19 Jun 2015 12:00:45 -0400 Subject: golang-cross: do_compile fails on warnings treated as error On glibc 2.20+, the _BSD_SOURCE and _SVID_SOURCE feature test macros are deprecated as of glibc 2.19.90 (2.20 devel), we define _DEFAULT_SOURCE instead. (fixed upstream) https://groups.google.com/forum/#!topic/golang-codereviews/S4TARFCxu2k Signed-off-by: Amy Fong Signed-off-by: Bruce Ashfield --- recipes-devtools/go/golang-cross.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'recipes-devtools/go/golang-cross.inc') diff --git a/recipes-devtools/go/golang-cross.inc b/recipes-devtools/go/golang-cross.inc index 9330572d..ce4ee0e9 100644 --- a/recipes-devtools/go/golang-cross.inc +++ b/recipes-devtools/go/golang-cross.inc @@ -3,7 +3,11 @@ HOMEPAGE = "golang.org" # DEPENDS = "virtual/${TARGET_PREFIX}gcc libgcc" DEPENDS = "libgcc" PROVIDES = "virtual/${TARGET_PREFIX}golang" -SRC_URI = "http://golang.org/dl/go${PV}.src.tar.gz" +SRC_URI = "\ + http://golang.org/dl/go${PV}.src.tar.gz \ + file://bsd_svid_source.patch \ + " + S="${WORKDIR}/go" do_compile () { -- cgit v1.2.3-54-g00ecf