Skip to content

Commit f4f3f66

Browse files
lovasoacursoragent
andauthored
Fix: Add arm64 and armhf architecture support for dependencies (#1025)
Co-authored-by: Cursor Agent <[email protected]>
1 parent 6355962 commit f4f3f66

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ RUN apt-get update && \
1111
elif [ "$TARGETARCH" = "arm64" ]; then \
1212
echo aarch64-unknown-linux-gnu > TARGET && \
1313
echo aarch64-linux-gnu-gcc > LINKER && \
14-
apt-get install -y gcc-aarch64-linux-gnu libgcc-s1-arm64-cross unixodbc-dev freetds-dev && \
14+
dpkg --add-architecture arm64 && apt-get update && \
15+
apt-get install -y gcc-aarch64-linux-gnu libgcc-s1-arm64-cross unixodbc-dev:arm64 freetds-dev:arm64 && \
1516
cp /usr/aarch64-linux-gnu/lib/libgcc_s.so.1 .; \
1617
elif [ "$TARGETARCH" = "arm" ]; then \
1718
echo armv7-unknown-linux-gnueabihf > TARGET && \
1819
echo arm-linux-gnueabihf-gcc > LINKER && \
19-
apt-get install -y gcc-arm-linux-gnueabihf libgcc-s1-armhf-cross cmake libclang1 unixodbc-dev freetds-dev && \
20+
dpkg --add-architecture armhf && apt-get update && \
21+
apt-get install -y gcc-arm-linux-gnueabihf libgcc-s1-armhf-cross cmake libclang1 unixodbc-dev:armhf freetds-dev:armhf && \
2022
cargo install --force --locked bindgen-cli && \
2123
echo "-I/usr/lib/gcc-cross/arm-linux-gnueabihf/12/include -I/usr/arm-linux-gnueabihf/include" > BINDGEN_EXTRA_CLANG_ARGS; \
2224
cp /usr/arm-linux-gnueabihf/lib/libgcc_s.so.1 .; \

0 commit comments

Comments
 (0)