Skip to content

Commit 87ba10d

Browse files
committed
Add CMake archive with static binaries (3/n)
1 parent 9dd2756 commit 87ba10d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

ci/cmake-build-static/Dockerfile

+8-4
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,15 @@ ADD https://github.com/Kitware/CMake.git#e2be23a2b39f4380f32fe65ba770addc154579c
2424
# Build CMake with CMake.
2525
# No ccmake needed.
2626
# No cmake-gui needed.
27+
# Static openssl is partially a problem:
28+
# - Used by file(DOWNLOAD), etc: https://discourse.cmake.org/t/feature-request-curl-executable/1619/3
29+
# - TLS verification will expect same paths on end-user machine as on build machine (so Alpine paths)
30+
# That won't work for most people. Confer
31+
# https://forum.crystal-lang.org/t/alpine-static-compiled-binary-failed-with-routinescertificate-verify-failed-openssl-error-when-run-it-on-centos-8/4946
32+
# - But TLS verification is disabled by default: https://cmake.org/cmake/help/latest/command/file.html#transfer
2733
WORKDIR /usr/local/src/cmake
28-
# RUN CFLAGS=-static CXXFLAGS=-static ./bootstrap --generator=Ninja && ninja && make install
29-
# RUN CFLAGS=-static CXXFLAGS=-static ./bootstrap --prefix=/usr/local/cmake && make && make install
30-
# https://stackoverflow.com/a/24671474/21513816 for building static executables
31-
# better: https://github.com/Kitware/CMake/blob/master/Utilities/Release/linux/x86_64/cache.txt
34+
# static executables: https://github.com/Kitware/CMake/blob/master/Utilities/Release/linux/x86_64/cache.txt
35+
# related: https://stackoverflow.com/a/24671474/21513816 for building static executables
3236
RUN cmake -S . -B build \
3337
-D CMAKE_MAKE_PROGRAM=make \
3438
-D CMAKE_BUILD_TYPE=Release \

0 commit comments

Comments
 (0)