netns: fix reproducible QA warnings

Pass -trimpath to the build to avoid references to TMPDIR.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
Bruce Ashfield 2022-09-13 16:21:06 -04:00
parent ad8af62133
commit ba32f19b65

View File

@ -39,7 +39,7 @@ do_compile() {
export LDFLAGS=""
export CGO_CFLAGS="${TARGET_CFLAGS}"
export CGO_LDFLAGS="${TARGET_LDFLAGS}"
export GOFLAGS="-mod=vendor"
export GOFLAGS="-mod=vendor -trimpath"
cd ${S}/src/import
# Static builds work but are not recommended. See Makefile*cgo patch.