mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
fixup! Add Dockerfile for cross compilation
This commit is contained in:
parent
eb760f1576
commit
5aab6b884a
1 changed files with 4 additions and 2 deletions
|
@ -27,11 +27,13 @@ ENV PATH="/root/.cargo/bin/:${PATH}"
|
||||||
RUN rustup target add arm-unknown-linux-gnueabi
|
RUN rustup target add arm-unknown-linux-gnueabi
|
||||||
RUN rustup target add arm-unknown-linux-gnueabihf
|
RUN rustup target add arm-unknown-linux-gnueabihf
|
||||||
|
|
||||||
RUN echo '[target.arm-unknown-linux-gnueabihf]\nlinker = "arm-linux-gnueabihf-gcc"' > ~/.cargo/config
|
RUN mkdir /.cargo && \
|
||||||
RUN echo '[target.arm-unknown-linux-gnueabi]\nlinker = "arm-linux-gnueabi-gcc"' > ~/.cargo/config
|
echo '[target.arm-unknown-linux-gnueabihf]\nlinker = "arm-linux-gnueabihf-gcc"' > /.cargo/config && \
|
||||||
|
echo '[target.arm-unknown-linux-gnueabi]\nlinker = "arm-linux-gnueabi-gcc"' >> /.cargo/config
|
||||||
|
|
||||||
RUN mkdir /build
|
RUN mkdir /build
|
||||||
ENV CARGO_TARGET_DIR /build
|
ENV CARGO_TARGET_DIR /build
|
||||||
|
ENV CARGO_HOME /build/cache
|
||||||
|
|
||||||
ADD . /src
|
ADD . /src
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
Loading…
Reference in a new issue