From b9bda46911920b0390a185d3ccc9a1f630ca16c4 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Mon, 11 Feb 2019 10:59:48 -0500 Subject: [PATCH 3/3] Don't trim source paths This causes debuginfo generation to fail. Signed-off-by: Stephen Gallagher --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e41114544650f60658a6d5e0d8edd67e79928a73..edb7065f34c15ad24b860e66628c83a0d899b9be 100644 --- a/Makefile +++ b/Makefile @@ -2,12 +2,12 @@ SOURCES = $(shell script/build files) SOURCE_DATE_EPOCH ?= $(shell date +%s) BUILD_DATE = $(shell date -u -d "@$(SOURCE_DATE_EPOCH)" '+%d %b %Y' 2>/dev/null || date -u -r "$(SOURCE_DATE_EPOCH)" '+%d %b %Y') HUB_VERSION = $(shell bin/hub version | tail -1) FLAGS_ALL = $(shell go version | grep -q 'go1.[89]' || echo 'all=') export LDFLAGS := -extldflags '$(LDFLAGS)' -export GCFLAGS := $(FLAGS_ALL)-trimpath '$(PWD)' -export ASMFLAGS := $(FLAGS_ALL)-trimpath '$(PWD)' +export GCFLAGS := $(FLAGS_ALL) +export ASMFLAGS := $(FLAGS_ALL) MIN_COVERAGE = 89.4 HELP_CMD = \ share/man/man1/hub-alias.1 \ -- 2.21.0