--- /dev/null
+--- golang-1.4.2/src/cmd/cgo/gcc.go.orig 2015-02-18 05:38:34.000000000 +0100
++++ golang-1.4.2/src/cmd/cgo/gcc.go 2015-06-28 11:34:02.057120270 +0200
+@@ -764,6 +764,7 @@
+ "-gdwarf-2", // generate DWARF v2 debugging symbols
+ "-c", // do not link
+ "-xc", // input language is C
++ "-Wa,--compress-debug-sections=none", // do not compress debug sections
+ )
+ if strings.Contains(c[0], "clang") {
+ c = append(c,
# - subpackage -src files?
# Conditional build:
-%bcond_without tests # build without tests
+%bcond_without tests # build without tests [nop actually]
%bcond_without verbose # verbose build (V=1)
%bcond_with emacs # Go mode for Emacs
%bcond_with vim # Go syntax files for Vim
Summary(pl.UTF-8): Kompilator języka Go i narzędzia
Name: golang
Version: 1.4.2
-Release: 0.1
+Release: 1
License: BSD
Group: Development/Languages
# Source0Download: https://golang.org/dl/
Source0: https://storage.googleapis.com/golang/go%{version}.src.tar.gz
# Source0-md5: 907f85c8fa765d31f7f955836fec4049
Patch0: ca-certs.patch
+Patch1: %{name}-binutils.patch
URL: http://golang.org/
BuildRequires: bash
BuildRequires: rpm-pythonprov
%setup -qc
mv go/* .
%patch0 -p1
+%patch1 -p1
cat > env.sh <<'EOF'
export GOROOT=$(pwd)