Skip to content

Commit

Permalink
hack: remove -installsuffix build flag
Browse files Browse the repository at this point in the history
Has been introduced in 232d59b to work around a bug with
"go build" but not required anymore since go 1.5: golang/go@4dab6d0

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max committed Jan 19, 2023
1 parent ed8782f commit 0c008cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hack/make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}")

Expand Down

0 comments on commit 0c008cc

Please sign in to comment.