mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-06-18 17:09:25 +02:00
Compare commits
9 Commits
update_rea
...
update_rea
Author | SHA1 | Date | |
---|---|---|---|
4dcd7eeec1 | |||
ea4d106ed8 | |||
9098b1a478 | |||
cb7421fc79 | |||
77e7761286 | |||
9f3cbd5a17 | |||
e607d1252b | |||
b50710ea8f | |||
7cd0ce9f5d |
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,5 +1,8 @@
|
|||||||
bin
|
bin
|
||||||
dockcross
|
dockcross
|
||||||
|
dockcross-*
|
||||||
|
build
|
||||||
|
build-*
|
||||||
*/test/
|
*/test/
|
||||||
Dockerfile
|
Dockerfile
|
||||||
web-wasm/Dockerfile
|
web-wasm/Dockerfile
|
||||||
|
@ -56,7 +56,8 @@ Only 64-bit x86_64 images are provided, a 64-bit x86_64 host system is required.
|
|||||||
For the impatient, here\'s how to compile a hello world for armv7:
|
For the impatient, here\'s how to compile a hello world for armv7:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd ~/src/dockcross
|
git clone https://github.com/dockcross/dockcross.git
|
||||||
|
cd dockcross
|
||||||
docker run --rm dockcross/linux-armv7 > ./dockcross-linux-armv7
|
docker run --rm dockcross/linux-armv7 > ./dockcross-linux-armv7
|
||||||
chmod +x ./dockcross-linux-armv7
|
chmod +x ./dockcross-linux-armv7
|
||||||
./dockcross-linux-armv7 bash -c '$CC test/C/hello.c -o hello_arm'
|
./dockcross-linux-armv7 bash -c '$CC test/C/hello.c -o hello_arm'
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
# ARG MXE_TARGET_LINK=shared
|
# ARG MXE_TARGET_LINK=shared
|
||||||
#
|
#
|
||||||
|
|
||||||
# mxe master 2021-08-04
|
# mxe master 2021-10-18
|
||||||
ARG MXE_GIT_TAG=91e21fc4bc0775790b0a7cc3f7da4aef89637a0f
|
ARG MXE_GIT_TAG=8838ac3938cd8e47424a4cb5d3676d1ae9a4d670
|
||||||
|
|
||||||
ENV CMAKE_TOOLCHAIN_FILE /usr/src/mxe/usr/${MXE_TARGET_ARCH}-w64-mingw32.${MXE_TARGET_LINK}${MXE_TARGET_THREAD}/share/cmake/mxe-conf.cmake
|
ENV CMAKE_TOOLCHAIN_FILE /usr/src/mxe/usr/${MXE_TARGET_ARCH}-w64-mingw32.${MXE_TARGET_LINK}${MXE_TARGET_THREAD}/share/cmake/mxe-conf.cmake
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ gosu nobody true
|
|||||||
# is created in /usr/local/bin
|
# is created in /usr/local/bin
|
||||||
|
|
||||||
cat << EOF >> /usr/local/bin/sudo
|
cat << EOF >> /usr/local/bin/sudo
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
# Emulate the sudo command
|
# Emulate the sudo command
|
||||||
SUDO_USER=root
|
SUDO_USER=root
|
||||||
SUDO_GROUP=root
|
SUDO_GROUP=root
|
||||||
|
@ -7,6 +7,11 @@ LABEL maintainer="Matt McCormick matt.mccormick@kitware.com"
|
|||||||
ARG REPO_URL=https://repo.or.cz/tinycc.git
|
ARG REPO_URL=https://repo.or.cz/tinycc.git
|
||||||
ENV REPO_URL=${REPO_URL}
|
ENV REPO_URL=${REPO_URL}
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get -y install \
|
||||||
|
libtbb-dev \
|
||||||
|
&& apt-get clean --yes
|
||||||
|
|
||||||
# Disable options: --with-libgcc --disable-static
|
# Disable options: --with-libgcc --disable-static
|
||||||
RUN git clone --recurse-submodules --remote-submodules ${REPO_URL} \
|
RUN git clone --recurse-submodules --remote-submodules ${REPO_URL} \
|
||||||
&& cd tinycc \
|
&& cd tinycc \
|
||||||
|
@ -6,6 +6,7 @@ RUN apt-get update && \
|
|||||||
apt-get -y install \
|
apt-get -y install \
|
||||||
libelf-dev \
|
libelf-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
|
libtbb-dev \
|
||||||
&& apt-get clean --yes
|
&& apt-get clean --yes
|
||||||
|
|
||||||
ENV CROSS_TRIPLE x86_64-linux-gnu
|
ENV CROSS_TRIPLE x86_64-linux-gnu
|
||||||
|
@ -7,6 +7,7 @@ RUN dpkg --add-architecture i386 && \
|
|||||||
gcc-multilib \
|
gcc-multilib \
|
||||||
g++-multilib \
|
g++-multilib \
|
||||||
libc6:i386 \
|
libc6:i386 \
|
||||||
|
libtbb-dev:i386 \
|
||||||
libstdc++6:i386 \
|
libstdc++6:i386 \
|
||||||
libbz2-dev:i386 \
|
libbz2-dev:i386 \
|
||||||
libexpat1-dev:i386 \
|
libexpat1-dev:i386 \
|
||||||
|
Reference in New Issue
Block a user