aboutsummaryrefslogtreecommitdiff
path: root/src/make.bash
diff options
context:
space:
mode:
Diffstat (limited to 'src/make.bash')
-rwxr-xr-xsrc/make.bash7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/make.bash b/src/make.bash
index b2de37b724..1190b93ffa 100755
--- a/src/make.bash
+++ b/src/make.bash
@@ -77,6 +77,13 @@ do
fi
done
+# Test for debian/kFreeBSD.
+# cmd/dist will detect kFreeBSD as freebsd/$GOARCH, but we need to
+# disable cgo manually.
+if [ "$(uname -s)" == "GNU/kFreeBSD" ]; then
+ export CGO_ENABLED=0
+fi
+
# Clean old generated file that will cause problems in the build.
rm -f ./pkg/runtime/runtime_defs.go