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