Skip to content

Commit 841480a

Browse files
Merge branch 'master' into mf-remove-libcrystal
2 parents 44218bd + 24226f2 commit 841480a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

linux/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ RUN git clone https://github.com/crystal-lang/crystal \
7777
\
7878
&& make crystal stats=true static=true ${release:+release=true} \
7979
CRYSTAL_CONFIG_TARGET=${gnu_target} CRYSTAL_CONFIG_LIBRARY_PATH= \
80-
&& ([ "$(ldd .build/crystal | wc -l)" -eq "1" ] || { echo './build/crystal is not statically linked'; ldd .build/crystal; exit 1; })
80+
&& ([ "$(ldd .build/crystal | wc -l)" -eq "0" ] || { echo './build/crystal is not statically linked'; ldd .build/crystal; exit 1; })
8181

8282
# Build shards
8383
ARG shards_version
@@ -88,7 +88,7 @@ RUN git clone https://github.com/crystal-lang/shards \
8888
&& make SHARDS=false CRYSTAL=/crystal/bin/crystal \
8989
FLAGS="--stats --target ${musl_target} --static ${release:+--release}" \
9090
\
91-
&& ([ "$(ldd bin/shards | wc -l)" -eq "1" ] || { echo 'shards is not statically linked'; ldd bin/shards; exit 1; })
91+
&& ([ "$(ldd bin/shards | wc -l)" -eq "0" ] || { echo 'shards is not statically linked'; ldd bin/shards; exit 1; })
9292

9393
COPY files/crystal-wrapper /output/bin/crystal
9494
COPY --from=debian /bdwgc/.libs/libgc.a /libgc-debian.a

0 commit comments

Comments
 (0)