Skip to content
Snippets Groups Projects
Commit eeb1f099b168 authored by Stan Hu's avatar Stan Hu
Browse files

Build GitLab Pages with FIPS_MODE=1

Since GitLab Pages is built with CGO_ENABLED=0, the Go compiler
won't activate the boringcrypto C extensions by default. FIPS_MODE=1
should cause CGO_ENABLED=1 to be used instead.
parent d9d1ed5faed2
No related branches found
No related tags found
1 merge request!72Intermediate build for testing purposes
......@@ -33,6 +33,10 @@
# since it requires the package to be in $GOPATH/src/package
env = { 'GOPATH' => "#{Omnibus::Config.source_dir}/gitlab-pages" }
# Pages compiles with CGO_ENABLED=0 by default, so we need to activate
# FIPS mode explicitly.
env['FIPS_MODE'] = '1' if Build::Check.use_system_ssl?
make 'gitlab-pages', env: env
move 'gitlab-pages', "#{install_dir}/embedded/bin/gitlab-pages"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment