@@ -133,16 +133,22 @@ FROM base-builder AS base-builder-linux-amd64
133
133
134
134
ARG target_host=x86_64-linux-gnu
135
135
ARG target_host_rust=x86_64-unknown-linux-gnu
136
+ ARG target_host_libc=amd64
137
+ ARG target_host_gcc=x86-64-linux-gnu
136
138
137
139
FROM base-builder AS base-builder-linux-arm64
138
140
139
141
ARG target_host=aarch64-linux-gnu
140
142
ARG target_host_rust=aarch64-unknown-linux-gnu
143
+ ARG target_host_libc=arm64
144
+ ARG target_host_gcc=aarch64-linux-gnu
141
145
142
146
FROM base-builder AS base-builder-linux-arm
143
147
144
148
ARG target_host=arm-linux-gnueabihf
145
149
ARG target_host_rust=armv7-unknown-linux-gnueabihf
150
+ ARG target_host_libc=armhf
151
+ ARG target_host_gcc=arm-linux-gnueabihf
146
152
147
153
FROM base-builder-${TARGETOS}-${TARGETARCH} AS builder
148
154
@@ -159,6 +165,11 @@ ARG QEMU_LD_PREFIX=/usr/${target_host}
159
165
ARG TARGET=${target_host_rust}
160
166
ARG PKG_CONFIG_PATH=${QEMU_LD_PREFIX}/lib/pkgconfig
161
167
168
+ RUN apt-get install -qq -y --no-install-recommends \
169
+ libc6-${target_host_libc}-cross \
170
+ gcc-${target_host_gcc} \
171
+ g++-${target_host_gcc}
172
+
162
173
WORKDIR /opt
163
174
164
175
RUN ./install-rust.sh -y --target ${target_host_rust} --default-host ${target_host_rust} --profile minimal
@@ -205,7 +216,7 @@ RUN poetry lock && \
205
216
poetry install --no-root --no-interaction --no-ansi
206
217
207
218
RUN ./configure --prefix=/tmp/lightning_install --enable-static
208
- RUN poetry run make install
219
+ RUN poetry run make -j install
209
220
210
221
RUN for f in /tmp/lightning_install/bin/*; do \
211
222
if file "$f" | grep -q ELF; then \
0 commit comments