File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,15 @@ ADD https://github.com/Kitware/CMake.git#e2be23a2b39f4380f32fe65ba770addc154579c
24
24
# Build CMake with CMake.
25
25
# No ccmake needed.
26
26
# 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
27
33
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
32
36
RUN cmake -S . -B build \
33
37
-D CMAKE_MAKE_PROGRAM=make \
34
38
-D CMAKE_BUILD_TYPE=Release \
You can’t perform that action at this time.
0 commit comments