Skip to content

Commit 132d6f0

Browse files
build statically openssl
Signed-off-by: Nikita Korolev <nikita.korolev@flant.com>
1 parent 95dd974 commit 132d6f0

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

component_versions/version_map.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ package:
66
swtpm: 0.10.0
77
numactl: 2.0.19
88
openssl: 3.3.3
9+
openssl: openssl-3.4.1

images/packages/binaries/openssl/werf.inc.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import:
1515
{{- $name := print $.ImageName "-dependencies" -}}
1616
{{- define "$name" -}}
1717
packages:
18-
- gcc git make
18+
- gcc git make glibc-devel-static musl-devel-static
1919
- autoconf automake libtool makeinfo
2020
- perl-Net-SSLeay perl-IPC-Cmd perl-Pod-Html
2121
- autoconf libtool makeinfo gettext-devel po4a
@@ -41,12 +41,11 @@ shell:
4141
install:
4242
- |
4343
OUTDIR=/out
44-
# mkdir -p ~/.ssh && echo "StrictHostKeyChecking accept-new" > ~/.ssh/config
44+
# mkdir -p ~/.ssh && echo "StrictHostKeyChecking accept-new" > ~/.ssh/config
4545
46-
git clone --depth=1 $(cat /run/secrets/SOURCE_REPO)/{{ $gitRepoUrl }} --branch v{{ $version }} /src
46+
git clone --depth=1 $(cat /run/secrets/SOURCE_REPO)/{{ $gitRepoUrl }} --branch {{ $version }} /src
4747
cd /src
4848
49-
./Configure --prefix=/usr \
50-
CC=/usr/bin/musl-gcc
49+
./Configure --prefix=/usr CC=/usr/bin/musl-gcc -static
5150
make -j $(nproc)
52-
make install -j $(nproc) DESTDIR=/out
51+
make install_sw -j $(nproc) DESTDIR=/out

0 commit comments

Comments
 (0)