$NetBSD: patch-git-Makefile,v 1.2 2017/04/21 15:05:52 jperkin Exp $

Don't put HOME into binaries.

--- git/Makefile.orig	2016-10-28 19:34:16.000000000 +0000
+++ git/Makefile
@@ -391,7 +391,6 @@ GIT-VERSION-FILE: FORCE
 
 # CFLAGS and LDFLAGS are for the users to override from the command line.
 
-CFLAGS = -g -O2 -Wall
 DEVELOPER_CFLAGS = -Werror \
 	-Wdeclaration-after-statement \
 	-Wno-format-zero-length \
@@ -401,7 +400,6 @@ DEVELOPER_CFLAGS = -Werror \
 	-Wstrict-prototypes \
 	-Wunused \
 	-Wvla
-LDFLAGS =
 ALL_CFLAGS = $(CPPFLAGS) $(CFLAGS)
 ALL_LDFLAGS = $(LDFLAGS)
 STRIP ?= strip
@@ -423,7 +421,7 @@ ARFLAGS = rcs
 #   htmldir
 # This can help installing the suite in a relocatable way.
 
-prefix = $(HOME)
+prefix = $(PREFIX)
 bindir_relative = bin
 bindir = $(prefix)/$(bindir_relative)
 mandir = $(prefix)/share/man
