mirror of
https://github.com/openharmony/third_party_rust_libc.git
synced 2026-07-01 21:34:09 -04:00
0e57942c36
Signed-off-by: ljy9810 <longjianyin@h-partners.com>
19 lines
669 B
Docker
19 lines
669 B
Docker
FROM ubuntu:23.10
|
|
|
|
# FIXME(time): we are using an EOL release because 24.04 changes to 64-bit time
|
|
RUN sed -i -E 's/(archive|security)\.ubuntu\.com/old-releases.ubuntu.com/g' \
|
|
/etc/apt/sources.list && \
|
|
apt-get update && apt-get install -y --no-install-recommends \
|
|
ca-certificates \
|
|
gcc \
|
|
gcc-powerpc-linux-gnu \
|
|
libc6-dev \
|
|
libc6-dev-powerpc-cross \
|
|
qemu-system-ppc \
|
|
qemu-user
|
|
|
|
ENV CARGO_TARGET_POWERPC_UNKNOWN_LINUX_GNU_LINKER=powerpc-linux-gnu-gcc \
|
|
CARGO_TARGET_POWERPC_UNKNOWN_LINUX_GNU_RUNNER="qemu-ppc -L /usr/powerpc-linux-gnu" \
|
|
CC=powerpc-linux-gnu-gcc \
|
|
PATH=$PATH:/rust/bin
|