Blob Blame History Raw
From 04451ada335fa0ba6de6938065c5ede139ccd18d Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh@redhat.com>
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 <sgallagh@redhat.com>
---
 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.20.1