mirror of
https://github.com/openshift/source-to-image.git
synced 2026-02-05 12:44:54 +01:00
Make s2i binaries static
Allows running in linux distros that do not have glibc, for example Fixes #727
This commit is contained in:
@@ -87,7 +87,7 @@ s2i::build::build_binaries() {
|
||||
for platform in "${platforms[@]}"; do
|
||||
s2i::build::set_platform_envs "${platform}"
|
||||
echo "++ Building go targets for ${platform}:" "${targets[@]}"
|
||||
go install "${goflags[@]:+${goflags[@]}}" \
|
||||
CGO_ENABLED=0 go install "${goflags[@]:+${goflags[@]}}" \
|
||||
-pkgdir "${S2I_OUTPUT_PKGDIR}" \
|
||||
-ldflags "${version_ldflags}" \
|
||||
"${binaries[@]}"
|
||||
|
||||
Reference in New Issue
Block a user