Don't use LDFLAGS for passing go parameters in Makefile
LDFLAGS is used to pass some params to go install ${LDFLAGS}
in https://gitlab.com/gitlab-org/gitaly/blob/master/Makefile#L17.
This also changes the LDFLAGS for the gcc compiler i.e. when bundle install build native extensions which breaks (in my case) the build of rugged.
Replacing LDFLAGS solves this issue:
$ sed -s 's/LDFLAGS/GO_LDFLAGS/g' -i Makefile