Skip to content

Commit

Permalink
Update build flags so "govulncheck" can do-the-right-thing
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Feb 22, 2023
1 parent 7c14c86 commit 584f072
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile.cross
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ ENV CGO_ENABLED 0

ENV GOFLAGS="-v -a -tags=netgo -installsuffix=netgo"
# https://golang.org/issue/26849
ENV BUILD_FLAGS="-ldflags '-d -s -w' ./cmd/rawdns"
ENV BUILD_FLAGS="-ldflags '-d -w' ./cmd/rawdns"
# intentionally *not* including "-s" so that we can run "govulncheck" on the result (minor size increase)

WORKDIR /usr/local/src/rawdns

Expand Down

0 comments on commit 584f072

Please sign in to comment.