Browse Source

hack: remove -installsuffix build flag

Has been introduced in 232d59baeb13778abc242a602ca434d83e1eb6e8 to work around a bug with
"go build" but not required anymore since go 1.5: https://github.com/golang/go/commit/4dab6d01f12591f256d36b32cd6480ef679458f1

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 2 years ago
parent
commit
0c008cc4f8
1 changed files with 1 additions and 2 deletions
  1. 1 2
      hack/make.sh

+ 1 - 2
hack/make.sh

@@ -112,8 +112,7 @@ LDFLAGS_STATIC=''
 EXTLDFLAGS_STATIC='-static'
 # ORIG_BUILDFLAGS is necessary for the cross target which cannot always build
 # with options like -race.
-ORIG_BUILDFLAGS=(-tags "netgo osusergo static_build $DOCKER_BUILDTAGS" -installsuffix netgo)
-# see https://github.com/golang/go/issues/9369#issuecomment-69864440 for why -installsuffix is necessary here
+ORIG_BUILDFLAGS=(-tags "netgo osusergo static_build $DOCKER_BUILDTAGS")
 
 BUILDFLAGS=(${BUILDFLAGS} "${ORIG_BUILDFLAGS[@]}")