3 COPY scripts/cross-apt-packages.sh /scripts/
4 RUN sh /scripts/cross-apt-packages.sh
6 # Ubuntu 16.04 (this container) ships with make 4, but something in the
7 # toolchains we build below chokes on that, so go back to make 3
8 COPY scripts/make3.sh /scripts/
9 RUN sh /scripts/make3.sh
11 COPY scripts/crosstool-ng.sh /scripts/
12 RUN sh /scripts/crosstool-ng.sh
14 COPY scripts/rustbuild-setup.sh /scripts/
15 RUN sh /scripts/rustbuild-setup.sh
19 COPY dist-x86_64-netbsd/build-netbsd-toolchain.sh /tmp/
20 RUN ./build-netbsd-toolchain.sh
24 COPY scripts/sccache.sh /scripts/
25 RUN sh /scripts/sccache.sh
27 ENV PATH=$PATH:/x-tools/x86_64-unknown-netbsd/bin
30 AR_x86_64_unknown_netbsd=x86_64--netbsd-ar \
31 CC_x86_64_unknown_netbsd=x86_64--netbsd-gcc-sysroot \
32 CXX_x86_64_unknown_netbsd=x86_64--netbsd-g++-sysroot
34 ENV HOSTS=x86_64-unknown-netbsd
36 ENV RUST_CONFIGURE_ARGS --host=$HOSTS --enable-extended
37 ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS