app-emulation/docker: disable optimizations

With optimizations enabled, seccomp fails to compile with errors like:

  error: enumerator value for '__cgo_enum__0' is not an integer constant

This is due to https://github.com/golang/go/issues/14669.
This commit is contained in:
Alex Crawford 2016-11-16 11:11:37 -08:00
parent b860ad618e
commit 8517d24bad
2 changed files with 3 additions and 0 deletions

View File

@ -252,6 +252,9 @@ src_compile() {
unset DOCKER_EXPERIMENTAL
fi
# disable optimizations due to https://github.com/golang/go/issues/14669
CFLAGS+=" -O0"
go_export
# verbose building