File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -90,12 +90,13 @@ RUN git clone https://github.com/crystal-lang/crystal \
90
90
&& git checkout ${crystal_sha1} \
91
91
\
92
92
&& make deps \
93
- && mkdir .build \
94
- && cc '/crystal-musl.o' -o '.build/crystal' -rdynamic src/llvm/ext/llvm_ext.o `llvm-config --libs --system-libs --ldflags` -lstdc++ -lpcre -lm -lgc -lpthread src/ext/libcrystal.a -levent -lrt \
93
+ && mkdir -p .build/crystal-musl \
94
+ && cc '/crystal-musl.o' -o '.build/crystal-musl/crystal' -rdynamic src/llvm/ext/llvm_ext.o `llvm-config --libs --system-libs --ldflags` -lstdc++ -lpcre -lm -lgc -lpthread src/ext/libcrystal.a -levent -lrt \
95
+ && export PATH=.build/crystal-musl/:$PATH \
95
96
\
96
- && touch src/compiler/crystal.cr \
97
97
&& make crystal stats=true static=true ${release:+release=true} \
98
- CRYSTAL_CONFIG_TARGET=${gnu_target}
98
+ CRYSTAL_CONFIG_TARGET=${gnu_target} \
99
+ && ([ "$(ldd .build/crystal | wc -l)" -eq "1" ] || { echo './build/crystal is not statically linked' ; ldd .build/crystal; exit 1; })
99
100
100
101
# Build shards
101
102
ARG shards_version
You can’t perform that action at this time.
0 commit comments