Skip to content

Commit 24226f2

Browse files
Merge pull request #88 from crystal-lang/fix/static-executable-check
Fix static executable checks
2 parents 3dd3fe9 + 4eb083d commit 24226f2

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
@@ -86,7 +86,7 @@ RUN git clone https://github.com/crystal-lang/crystal \
8686
\
8787
&& make crystal stats=true static=true ${release:+release=true} \
8888
CRYSTAL_CONFIG_TARGET=${gnu_target} CRYSTAL_CONFIG_LIBRARY_PATH= \
89-
&& ([ "$(ldd .build/crystal | wc -l)" -eq "1" ] || { echo './build/crystal is not statically linked'; ldd .build/crystal; exit 1; })
89+
&& ([ "$(ldd .build/crystal | wc -l)" -eq "0" ] || { echo './build/crystal is not statically linked'; ldd .build/crystal; exit 1; })
9090

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

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

0 commit comments

Comments
 (0)