diff --git a/0004-Don-t-compress-DWARF.patch b/0004-Don-t-compress-DWARF.patch new file mode 100644 index 0000000..d3122ab --- /dev/null +++ b/0004-Don-t-compress-DWARF.patch @@ -0,0 +1,30 @@ +From 4ff2ef3252bf0545a2e4ba2aba9699b700a62c16 Mon Sep 17 00:00:00 2001 +From: Stephen Gallagher +Date: Tue, 17 Jul 2018 09:06:15 -0400 +Subject: [PATCH 4/4] Don't compress DWARF + +Signed-off-by: Stephen Gallagher +--- + script/build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/script/build b/script/build +index 864ba544f32129bb311ef9942b73cec7521de8ef..d1d1d6def814aa06519a65dd722098890db348a1 100755 +--- a/script/build ++++ b/script/build +@@ -11,11 +11,11 @@ find_source_files() { + find . -maxdepth 2 -name '*.go' '!' -name '*_test.go' "$@" + } + + build_hub() { + mkdir -p "$(dirname "$1")" +- go build -ldflags "-B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -X github.com/github/hub/version.Version=`./script/version`" -o "$1" ++ go build -ldflags "-B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -compressdwarf=false -X github.com/github/hub/version.Version=`./script/version`" -o "$1" + } + + [ $# -gt 0 ] || set -- -o "bin/hub${windows:+.exe}" + + case "$1" in +-- +2.17.1 +