@@ -5,7 +5,7 @@ RUN apk add --no-cache \
5
5
# Statically-compiled llvm
6
6
llvm15-dev llvm15-static \
7
7
# Static stdlib dependencies
8
- zlib-static yaml-static libxml2-static pcre2-dev libevent-static \
8
+ gc-dev zlib-static yaml-static libxml2-static pcre2-dev libevent-static \
9
9
# Static compiler dependencies
10
10
libffi-dev \
11
11
# Build tools
@@ -14,20 +14,12 @@ RUN apk add --no-cache \
14
14
ARG release
15
15
ENV CFLAGS="-fPIC -pipe ${release:+-O2}"
16
16
17
- # Build libgc (again, this time for musl)
18
- ARG gc_version
19
- RUN git clone https://github.com/ivmai/bdwgc \
20
- && cd bdwgc \
21
- && git checkout ${gc_version} \
22
- \
23
- && ./autogen.sh \
24
- && ./configure --disable-debug --disable-shared --enable-large-config \
25
- && make -j$(nproc) CFLAGS=-DNO_GETCONTEXT
26
-
27
17
# This overrides default CRYSTAL_LIBRARY_PATH baked into the binary (starting with 1.2.0)
28
18
# or configured via wrapper script (before 1.2.0) because we want to link against
29
- # the newly-built libraries, not the ones shipped with the bootstrap compiler.
30
- ENV CRYSTAL_LIBRARY_PATH=/bdwgc/.libs/
19
+ # the regularly installed libraries, not the ones shipped with the bootstrap compiler.
20
+ # This particularly affects libgc which was bundled upto Crystal 1.12
21
+ ENV CRYSTAL_LIBRARY_PATH=""
22
+
31
23
RUN llvm-config --version
32
24
33
25
ARG previous_crystal_release
0 commit comments