mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-22 08:24:25 +01:00
Added fortran compiler
* Added FC to all Dockerfiles * Changed cmake toolchains to use environment variables for compilers
This commit is contained in:
parent
9cc9ae7977
commit
eb65a8970a
@ -14,7 +14,8 @@ ENV AS=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-as \
|
|||||||
CC=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-clang \
|
CC=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-clang \
|
||||||
CPP=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-cpp \
|
CPP=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-cpp \
|
||||||
CXX=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-clang++ \
|
CXX=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-clang++ \
|
||||||
LD=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-ld
|
LD=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-ld \
|
||||||
|
FC=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-gfortran
|
||||||
|
|
||||||
ENV ANDROID_NDK_REVISION 16b
|
ENV ANDROID_NDK_REVISION 16b
|
||||||
ENV ANDROID_NDK_API 16
|
ENV ANDROID_NDK_API 16
|
||||||
|
@ -2,17 +2,18 @@ set(CMAKE_SYSTEM_NAME Android)
|
|||||||
set(CMAKE_SYSTEM_VERSION 1)
|
set(CMAKE_SYSTEM_VERSION 1)
|
||||||
|
|
||||||
set(cross_triple arm-linux-androideabi)
|
set(cross_triple arm-linux-androideabi)
|
||||||
set(CMAKE_ANDROID_STANDALONE_TOOLCHAIN /usr/${cross_triple}/)
|
set(CMAKE_ANDROID_STANDALONE_TOOLCHAIN $ENV{CROSS_ROOT})
|
||||||
set(CMAKE_ANDROID_ARM_MODE 1)
|
set(CMAKE_ANDROID_ARM_MODE 1)
|
||||||
set(CMAKE_ANDROID_ARM_NEON 1)
|
set(CMAKE_ANDROID_ARM_NEON 1)
|
||||||
|
|
||||||
set(CMAKE_C_COMPILER /usr/${cross_triple}/bin/${cross_triple}-clang)
|
set(CMAKE_C_COMPILER $ENV{CC})
|
||||||
set(CMAKE_CXX_COMPILER /usr/${cross_triple}/bin/${cross_triple}-clang++)
|
set(CMAKE_CXX_COMPILER $ENV{CXX})
|
||||||
|
set(CMAKE_Fortran_COMPILER $ENV{FC})
|
||||||
|
|
||||||
set(CMAKE_FIND_ROOT_PATH /usr/${cross_triple})
|
set(CMAKE_FIND_ROOT_PATH $ENV{CROSS_ROOT})
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||||
set(CMAKE_SYSROOT /usr/${cross_triple}/sysroot)
|
set(CMAKE_SYSROOT $ENV{CROSS_ROOT}/sysroot)
|
||||||
|
|
||||||
set(CMAKE_CROSSCOMPILING_EMULATOR /usr/bin/qemu-arm)
|
set(CMAKE_CROSSCOMPILING_EMULATOR /usr/bin/qemu-arm)
|
||||||
|
@ -15,7 +15,8 @@ ENV AS=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-as \
|
|||||||
CC=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-clang \
|
CC=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-clang \
|
||||||
CPP=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-cpp \
|
CPP=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-cpp \
|
||||||
CXX=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-clang++ \
|
CXX=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-clang++ \
|
||||||
LD=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-ld
|
LD=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-ld \
|
||||||
|
FC=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-gfortran
|
||||||
|
|
||||||
ENV ANDROID_NDK_REVISION 16b
|
ENV ANDROID_NDK_REVISION 16b
|
||||||
ENV ANDROID_NDK_API 21
|
ENV ANDROID_NDK_API 21
|
||||||
|
@ -2,18 +2,19 @@ set(CMAKE_SYSTEM_NAME Android)
|
|||||||
set(CMAKE_SYSTEM_VERSION 1)
|
set(CMAKE_SYSTEM_VERSION 1)
|
||||||
|
|
||||||
set(cross_triple aarch64-linux-android)
|
set(cross_triple aarch64-linux-android)
|
||||||
set(CMAKE_ANDROID_STANDALONE_TOOLCHAIN /usr/${cross_triple}/)
|
set(CMAKE_ANDROID_STANDALONE_TOOLCHAIN $ENV{CROSS_ROOT})
|
||||||
set(CMAKE_ANDROID_ARM_MODE 1)
|
set(CMAKE_ANDROID_ARM_MODE 1)
|
||||||
set(CMAKE_ANDROID_ARM_NEON 1)
|
set(CMAKE_ANDROID_ARM_NEON 1)
|
||||||
|
|
||||||
set(CMAKE_C_COMPILER /usr/${cross_triple}/bin/${cross_triple}-clang)
|
set(CMAKE_C_COMPILER $ENV{CC})
|
||||||
set(CMAKE_CXX_COMPILER /usr/${cross_triple}/bin/${cross_triple}-clang++)
|
set(CMAKE_CXX_COMPILER $ENV{CXX})
|
||||||
|
set(CMAKE_Fortran_COMPILER $ENV{FC})
|
||||||
|
|
||||||
set(CMAKE_FIND_ROOT_PATH /usr/${cross_triple})
|
set(CMAKE_FIND_ROOT_PATH $ENV{CROSS_ROOT})
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||||
set(CMAKE_SYSROOT /usr/${cross_triple}/sysroot)
|
set(CMAKE_SYSROOT $ENV{CROSS_ROOT}/sysroot)
|
||||||
|
|
||||||
set(CMAKE_CROSSCOMPILING_EMULATOR /usr/bin/qemu-arm)
|
set(CMAKE_CROSSCOMPILING_EMULATOR /usr/bin/qemu-arm)
|
||||||
|
|
||||||
|
@ -31,7 +31,8 @@ ENV AS=/usr/bin/${CROSS_TRIPLE}/bin/${CROSS_TRIPLE}-as \
|
|||||||
CC=/usr/bin/${CROSS_TRIPLE}/bin/${CROSS_TRIPLE}-gcc \
|
CC=/usr/bin/${CROSS_TRIPLE}/bin/${CROSS_TRIPLE}-gcc \
|
||||||
CPP=/usr/bin/${CROSS_TRIPLE}/bin/${CROSS_TRIPLE}-cpp \
|
CPP=/usr/bin/${CROSS_TRIPLE}/bin/${CROSS_TRIPLE}-cpp \
|
||||||
CXX=/usr/bin/${CROSS_TRIPLE}/bin/${CROSS_TRIPLE}-g++ \
|
CXX=/usr/bin/${CROSS_TRIPLE}/bin/${CROSS_TRIPLE}-g++ \
|
||||||
LD=/usr/bin/${CROSS_TRIPLE}/bin/${CROSS_TRIPLE}-ld
|
LD=/usr/bin/${CROSS_TRIPLE}/bin/${CROSS_TRIPLE}-ld \
|
||||||
|
FC=/usr/bin/${CROSS_TRIPLE}/bin/${CROSS_TRIPLE}-gfortran
|
||||||
|
|
||||||
ENV DEFAULT_DOCKCROSS_IMAGE dockcross/linux-arm64
|
ENV DEFAULT_DOCKCROSS_IMAGE dockcross/linux-arm64
|
||||||
WORKDIR /work
|
WORKDIR /work
|
||||||
|
@ -5,11 +5,11 @@ set(CMAKE_SYSTEM_PROCESSOR aarch64)
|
|||||||
|
|
||||||
set(cross_triple "aarch64-unknown-linux-gnueabi")
|
set(cross_triple "aarch64-unknown-linux-gnueabi")
|
||||||
|
|
||||||
set(CMAKE_C_COMPILER /usr/bin/aarch64-unknown-linux-gnueabi/bin/${cross_triple}-cc)
|
set(CMAKE_C_COMPILER $ENV{CC})
|
||||||
set(CMAKE_CXX_COMPILER /usr/bin/aarch64-unknown-linux-gnueabi/bin/${cross_triple}-c++)
|
set(CMAKE_CXX_COMPILER $ENV{CXX})
|
||||||
set(CMAKE_Fortran_COMPILER /usr/bin/aarch64-unknown-linux-gnueabi/bin/${cross_triple}-gfortran)
|
set(CMAKE_Fortran_COMPILER $ENV{FC})
|
||||||
|
|
||||||
set(CMAKE_FIND_ROOT_PATH /usr/bin/aarch64-unknown-linux-gnueabi)
|
set(CMAKE_FIND_ROOT_PATH $ENV{CROSS_ROOT})
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||||
|
@ -23,7 +23,8 @@ ENV AS=/usr/bin/${CROSS_TRIPLE}-as \
|
|||||||
CC=/usr/bin/${CROSS_TRIPLE}-gcc \
|
CC=/usr/bin/${CROSS_TRIPLE}-gcc \
|
||||||
CPP=/usr/bin/${CROSS_TRIPLE}-cpp-4.9 \
|
CPP=/usr/bin/${CROSS_TRIPLE}-cpp-4.9 \
|
||||||
CXX=/usr/bin/${CROSS_TRIPLE}-g++ \
|
CXX=/usr/bin/${CROSS_TRIPLE}-g++ \
|
||||||
LD=/usr/bin/${CROSS_TRIPLE}-ld
|
LD=/usr/bin/${CROSS_TRIPLE}-ld \
|
||||||
|
FC=/usr/bin/${CROSS_TRIPLE}-gfortran
|
||||||
|
|
||||||
ENV QEMU_LD_PREFIX ${CROSS_ROOT}/libc
|
ENV QEMU_LD_PREFIX ${CROSS_ROOT}/libc
|
||||||
ENV QEMU_SET_ENV "LD_LIBRARY_PATH=${CROSS_ROOT}/lib:${CROSS_ROOT}/libc/lib/${CROSS_TRIPLE}/"
|
ENV QEMU_SET_ENV "LD_LIBRARY_PATH=${CROSS_ROOT}/lib:${CROSS_ROOT}/libc/lib/${CROSS_TRIPLE}/"
|
||||||
|
@ -4,11 +4,11 @@ set(CMAKE_SYSTEM_PROCESSOR arm)
|
|||||||
|
|
||||||
set(cross_triple "arm-linux-gnueabi")
|
set(cross_triple "arm-linux-gnueabi")
|
||||||
|
|
||||||
set(CMAKE_C_COMPILER /usr/bin/${cross_triple}-gcc)
|
set(CMAKE_C_COMPILER $ENV{CC})
|
||||||
set(CMAKE_CXX_COMPILER /usr/bin/${cross_triple}-g++)
|
set(CMAKE_CXX_COMPILER $ENV{CXX})
|
||||||
set(CMAKE_Fortran_COMPILER /usr/bin/${cross_triple}-gfortran)
|
set(CMAKE_Fortran_COMPILER $ENV{FC})
|
||||||
|
|
||||||
set(CMAKE_FIND_ROOT_PATH /usr/${cross_triple} /usr/${cross_triple}/libc/usr)
|
set(CMAKE_FIND_ROOT_PATH $ENV{CROSS_ROOT} $ENV{CROSS_ROOT}/libc/usr)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||||
|
@ -18,7 +18,8 @@ ENV AS=/usr/bin/${CROSS_TRIPLE}-as \
|
|||||||
CC=/usr/bin/${CROSS_TRIPLE}-gcc \
|
CC=/usr/bin/${CROSS_TRIPLE}-gcc \
|
||||||
CPP=/usr/bin/${CROSS_TRIPLE}-cpp \
|
CPP=/usr/bin/${CROSS_TRIPLE}-cpp \
|
||||||
CXX=/usr/bin/${CROSS_TRIPLE}-g++ \
|
CXX=/usr/bin/${CROSS_TRIPLE}-g++ \
|
||||||
LD=/usr/bin/${CROSS_TRIPLE}-ld
|
LD=/usr/bin/${CROSS_TRIPLE}-ld \
|
||||||
|
FC=/usr/bin/${CROSS_TRIPLE}-gfortran
|
||||||
|
|
||||||
# Raspberry Pi is ARMv6+VFP2, Debian armhf is ARMv7+VFP3
|
# Raspberry Pi is ARMv6+VFP2, Debian armhf is ARMv7+VFP3
|
||||||
# Since this Dockerfile is targeting linux-arm from Raspberry Pi onward,
|
# Since this Dockerfile is targeting linux-arm from Raspberry Pi onward,
|
||||||
|
@ -4,11 +4,11 @@ set(CMAKE_SYSTEM_PROCESSOR arm)
|
|||||||
|
|
||||||
set(cross_triple "arm-linux-gnueabihf")
|
set(cross_triple "arm-linux-gnueabihf")
|
||||||
|
|
||||||
set(CMAKE_C_COMPILER /usr/bin/${cross_triple}-gcc)
|
set(CMAKE_C_COMPILER $ENV{CC})
|
||||||
set(CMAKE_CXX_COMPILER /usr/bin/${cross_triple}-g++)
|
set(CMAKE_CXX_COMPILER $ENV{CXX})
|
||||||
set(CMAKE_Fortran_COMPILER /usr/bin/${cross_triple}-gfortran)
|
set(CMAKE_Fortran_COMPILER $ENV{FC})
|
||||||
|
|
||||||
set(CMAKE_FIND_ROOT_PATH /usr/${cross_triple} /usr/${cross_triple}/libc/usr)
|
set(CMAKE_FIND_ROOT_PATH $ENV{CROSS_ROOT} $ENV{CROSS_ROOT}/libc/usr)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||||
|
@ -23,7 +23,8 @@ ENV AS=/usr/bin/${CROSS_TRIPLE}-as \
|
|||||||
CC=/usr/bin/${CROSS_TRIPLE}-gcc \
|
CC=/usr/bin/${CROSS_TRIPLE}-gcc \
|
||||||
CPP=/usr/bin/${CROSS_TRIPLE}-cpp-4.9 \
|
CPP=/usr/bin/${CROSS_TRIPLE}-cpp-4.9 \
|
||||||
CXX=/usr/bin/${CROSS_TRIPLE}-g++ \
|
CXX=/usr/bin/${CROSS_TRIPLE}-g++ \
|
||||||
LD=/usr/bin/${CROSS_TRIPLE}-ld
|
LD=/usr/bin/${CROSS_TRIPLE}-ld \
|
||||||
|
FC=/usr/bin/${CROSS_TRIPLE}-gfortran
|
||||||
|
|
||||||
ENV DEFAULT_DOCKCROSS_IMAGE dockcross/linux-armv7
|
ENV DEFAULT_DOCKCROSS_IMAGE dockcross/linux-armv7
|
||||||
|
|
||||||
|
@ -4,9 +4,9 @@ set(CMAKE_SYSTEM_PROCESSOR arm)
|
|||||||
|
|
||||||
set(cross_triple "arm-linux-gnueabihf")
|
set(cross_triple "arm-linux-gnueabihf")
|
||||||
|
|
||||||
set(CMAKE_C_COMPILER /usr/bin/${cross_triple}-cc)
|
set(CMAKE_C_COMPILER $ENV{CC})
|
||||||
set(CMAKE_CXX_COMPILER /usr/bin/${cross_triple}-c++)
|
set(CMAKE_CXX_COMPILER $ENV{CXX})
|
||||||
set(CMAKE_Fortran_COMPILER /usr/bin/${cross_triple}-gfortran)
|
set(CMAKE_Fortran_COMPILER $ENV{FC})
|
||||||
|
|
||||||
# Discard path returned by pkg-config and associated with HINTS in module
|
# Discard path returned by pkg-config and associated with HINTS in module
|
||||||
# like FindOpenSSL.
|
# like FindOpenSSL.
|
||||||
|
@ -20,7 +20,8 @@ ENV AS=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-as \
|
|||||||
CC=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-gcc \
|
CC=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-gcc \
|
||||||
CPP=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-cpp \
|
CPP=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-cpp \
|
||||||
CXX=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-g++ \
|
CXX=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-g++ \
|
||||||
LD=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-ld
|
LD=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-ld \
|
||||||
|
FC=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-gfortran
|
||||||
|
|
||||||
ENV QEMU_LD_PREFIX "${CROSS_ROOT}/${CROSS_TRIPLE}/sysroot"
|
ENV QEMU_LD_PREFIX "${CROSS_ROOT}/${CROSS_TRIPLE}/sysroot"
|
||||||
ENV QEMU_SET_ENV "LD_LIBRARY_PATH=${CROSS_ROOT}/lib:${QEMU_LD_PREFIX}"
|
ENV QEMU_SET_ENV "LD_LIBRARY_PATH=${CROSS_ROOT}/lib:${QEMU_LD_PREFIX}"
|
||||||
|
@ -5,9 +5,9 @@ set(CMAKE_SYSTEM_PROCESSOR mips)
|
|||||||
set(cross_triple "mips-unknown-linux-gnu")
|
set(cross_triple "mips-unknown-linux-gnu")
|
||||||
set(cross_root /usr/xcc/${cross_triple})
|
set(cross_root /usr/xcc/${cross_triple})
|
||||||
|
|
||||||
set(CMAKE_C_COMPILER ${cross_root}/bin/${cross_triple}-gcc)
|
set(CMAKE_C_COMPILER $ENV{CC})
|
||||||
set(CMAKE_CXX_COMPILER ${cross_root}/bin/${cross_triple}-g++)
|
set(CMAKE_CXX_COMPILER $ENV{CXX})
|
||||||
set(CMAKE_Fortran_COMPILER ${cross_root}/bin/${cross_triple}-gfortran)
|
set(CMAKE_Fortran_COMPILER $ENV{FC})
|
||||||
|
|
||||||
set(CMAKE_FIND_ROOT_PATH ${cross_root}/lib ${cross_root}/${cross_triple}/lib)
|
set(CMAKE_FIND_ROOT_PATH ${cross_root}/lib ${cross_root}/${cross_triple}/lib)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||||
|
@ -23,7 +23,8 @@ ENV AS=${CROSS_ROOT}/${CROSS_TRIPLE}-as \
|
|||||||
CC=${CROSS_ROOT}/${CROSS_TRIPLE}-gcc \
|
CC=${CROSS_ROOT}/${CROSS_TRIPLE}-gcc \
|
||||||
CPP=${CROSS_ROOT}/${CROSS_TRIPLE}-cpp-4.9 \
|
CPP=${CROSS_ROOT}/${CROSS_TRIPLE}-cpp-4.9 \
|
||||||
CXX=${CROSS_ROOT}/${CROSS_TRIPLE}-g++ \
|
CXX=${CROSS_ROOT}/${CROSS_TRIPLE}-g++ \
|
||||||
LD=${CROSS_ROOT}/${CROSS_TRIPLE}-ld
|
LD=${CROSS_ROOT}/${CROSS_TRIPLE}-ld \
|
||||||
|
FC=${CROSS_ROOT}/${CROSS_TRIPLE}-gfortran
|
||||||
|
|
||||||
ENV QEMU_LD_PREFIX ${CROSS_ROOT}/libc
|
ENV QEMU_LD_PREFIX ${CROSS_ROOT}/libc
|
||||||
ENV QEMU_SET_ENV "LD_LIBRARY_PATH=${CROSS_ROOT}/lib:${CROSS_ROOT}/libc/lib/${CROSS_TRIPLE}/"
|
ENV QEMU_SET_ENV "LD_LIBRARY_PATH=${CROSS_ROOT}/lib:${CROSS_ROOT}/libc/lib/${CROSS_TRIPLE}/"
|
||||||
|
@ -4,11 +4,11 @@ set(CMAKE_SYSTEM_PROCESSOR mipsel)
|
|||||||
|
|
||||||
set(cross_triple "mipsel-linux-gnu")
|
set(cross_triple "mipsel-linux-gnu")
|
||||||
|
|
||||||
set(CMAKE_C_COMPILER /usr/bin/${cross_triple}-gcc)
|
set(CMAKE_C_COMPILER $ENV{CC})
|
||||||
set(CMAKE_CXX_COMPILER /usr/bin/${cross_triple}-g++)
|
set(CMAKE_CXX_COMPILER $ENV{CXX})
|
||||||
set(CMAKE_Fortran_COMPILER /usr/bin/${cross_triple}-gfortran)
|
set(CMAKE_Fortran_COMPILER $ENV{FC})
|
||||||
|
|
||||||
set(CMAKE_FIND_ROOT_PATH /usr/${cross_triple} /usr/${cross_triple}/libc/usr)
|
set(CMAKE_FIND_ROOT_PATH $ENV{CROSS_ROOT} $ENV{CROSS_ROOT}/libc/usr)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||||
|
@ -32,7 +32,8 @@ ENV AS=/usr/bin/${CROSS_TRIPLE}-as \
|
|||||||
CC=/usr/bin/${CROSS_TRIPLE}-gcc \
|
CC=/usr/bin/${CROSS_TRIPLE}-gcc \
|
||||||
CPP=/usr/bin/${CROSS_TRIPLE}-cpp \
|
CPP=/usr/bin/${CROSS_TRIPLE}-cpp \
|
||||||
CXX=/usr/bin/${CROSS_TRIPLE}-g++ \
|
CXX=/usr/bin/${CROSS_TRIPLE}-g++ \
|
||||||
LD=/usr/bin/${CROSS_TRIPLE}-ld
|
LD=/usr/bin/${CROSS_TRIPLE}-ld \
|
||||||
|
FC=/usr/bin/${CROSS_TRIPLE}-gfortran
|
||||||
|
|
||||||
ENV DEFAULT_DOCKCROSS_IMAGE dockcross/linux-ppc64le
|
ENV DEFAULT_DOCKCROSS_IMAGE dockcross/linux-ppc64le
|
||||||
WORKDIR /work
|
WORKDIR /work
|
||||||
|
@ -4,9 +4,9 @@ set(CMAKE_SYSTEM_PROCESSOR ppc64le)
|
|||||||
|
|
||||||
set(cross_triple "powerpc64le-linux-gnu")
|
set(cross_triple "powerpc64le-linux-gnu")
|
||||||
|
|
||||||
set(CMAKE_C_COMPILER /usr/bin/${cross_triple}-cc)
|
set(CMAKE_C_COMPILER $ENV{CC})
|
||||||
set(CMAKE_CXX_COMPILER /usr/bin/${cross_triple}-c++)
|
set(CMAKE_CXX_COMPILER $ENV{CXX})
|
||||||
set(CMAKE_Fortran_COMPILER /usr/bin/${cross_triple}-gfortran)
|
set(CMAKE_Fortran_COMPILER $ENV{FC})
|
||||||
|
|
||||||
# Discard path returned by pkg-config and associated with HINTS in module
|
# Discard path returned by pkg-config and associated with HINTS in module
|
||||||
# like FindOpenSSL.
|
# like FindOpenSSL.
|
||||||
|
@ -20,7 +20,8 @@ ENV AS=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-as \
|
|||||||
CC=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-gcc \
|
CC=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-gcc \
|
||||||
CPP=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-cpp \
|
CPP=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-cpp \
|
||||||
CXX=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-g++ \
|
CXX=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-g++ \
|
||||||
LD=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-ld
|
LD=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-ld \
|
||||||
|
FC=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-gfortran
|
||||||
|
|
||||||
ENV QEMU_LD_PREFIX "${CROSS_ROOT}/${CROSS_TRIPLE}/sysroot"
|
ENV QEMU_LD_PREFIX "${CROSS_ROOT}/${CROSS_TRIPLE}/sysroot"
|
||||||
ENV QEMU_SET_ENV "LD_LIBRARY_PATH=${CROSS_ROOT}/lib:${QEMU_LD_PREFIX}"
|
ENV QEMU_SET_ENV "LD_LIBRARY_PATH=${CROSS_ROOT}/lib:${QEMU_LD_PREFIX}"
|
||||||
|
@ -5,9 +5,9 @@ set(CMAKE_SYSTEM_PROCESSOR s390x)
|
|||||||
set(cross_triple "s390x-ibm-linux-gnu")
|
set(cross_triple "s390x-ibm-linux-gnu")
|
||||||
set(cross_root /usr/xcc/${cross_triple})
|
set(cross_root /usr/xcc/${cross_triple})
|
||||||
|
|
||||||
set(CMAKE_C_COMPILER ${cross_root}/bin/${cross_triple}-gcc)
|
set(CMAKE_C_COMPILER $ENV{CC})
|
||||||
set(CMAKE_CXX_COMPILER ${cross_root}/bin/${cross_triple}-g++)
|
set(CMAKE_CXX_COMPILER $ENV{CXX})
|
||||||
set(CMAKE_Fortran_COMPILER ${cross_root}/bin/${cross_triple}-gfortran)
|
set(CMAKE_Fortran_COMPILER $ENV{FC})
|
||||||
|
|
||||||
set(CMAKE_FIND_ROOT_PATH ${cross_root}/lib ${cross_root}/${cross_triple}/lib)
|
set(CMAKE_FIND_ROOT_PATH ${cross_root}/lib ${cross_root}/${cross_triple}/lib)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||||
|
@ -8,7 +8,8 @@ ENV AS=/usr/bin/${CROSS_TRIPLE}-as \
|
|||||||
CC=/usr/bin/${CROSS_TRIPLE}-gcc \
|
CC=/usr/bin/${CROSS_TRIPLE}-gcc \
|
||||||
CPP=/usr/bin/${CROSS_TRIPLE}-cpp \
|
CPP=/usr/bin/${CROSS_TRIPLE}-cpp \
|
||||||
CXX=/usr/bin/${CROSS_TRIPLE}-g++ \
|
CXX=/usr/bin/${CROSS_TRIPLE}-g++ \
|
||||||
LD=/usr/bin/${CROSS_TRIPLE}-ld
|
LD=/usr/bin/${CROSS_TRIPLE}-ld \
|
||||||
|
FC=/usr/bin/${CROSS_TRIPLE}-gfortran
|
||||||
|
|
||||||
COPY ${CROSS_TRIPLE}-noop.sh /usr/bin/${CROSS_TRIPLE}-noop
|
COPY ${CROSS_TRIPLE}-noop.sh /usr/bin/${CROSS_TRIPLE}-noop
|
||||||
|
|
||||||
|
@ -4,8 +4,9 @@ set(CMAKE_SYSTEM_PROCESSOR x86_64)
|
|||||||
|
|
||||||
set(cross_triple "x86_64-linux-gnu")
|
set(cross_triple "x86_64-linux-gnu")
|
||||||
|
|
||||||
set(CMAKE_C_COMPILER /usr/bin/${cross_triple}-gcc)
|
set(CMAKE_C_COMPILER $ENV{CC})
|
||||||
set(CMAKE_CXX_COMPILER /usr/bin/${cross_triple}-g++)
|
set(CMAKE_CXX_COMPILER $ENV{CXX})
|
||||||
|
set(CMAKE_Fortran_COMPILER $ENV{FC})
|
||||||
set(CMAKE_ASM_COMPILER ${CMAKE_C_COMPILER})
|
set(CMAKE_ASM_COMPILER ${CMAKE_C_COMPILER})
|
||||||
|
|
||||||
set(CMAKE_CROSSCOMPILING_EMULATOR /usr/bin/${cross_triple}-noop)
|
set(CMAKE_CROSSCOMPILING_EMULATOR /usr/bin/${cross_triple}-noop)
|
||||||
|
@ -9,8 +9,9 @@ set(CMAKE_SYSTEM_PROCESSOR i686)
|
|||||||
|
|
||||||
set(cross_triple "i686-linux-gnu")
|
set(cross_triple "i686-linux-gnu")
|
||||||
|
|
||||||
set(CMAKE_C_COMPILER /usr/${cross_triple}/bin/${cross_triple}-gcc)
|
set(CMAKE_C_COMPILER $ENV{CC})
|
||||||
set(CMAKE_CXX_COMPILER /usr/${cross_triple}/bin/${cross_triple}-g++)
|
set(CMAKE_CXX_COMPILER $ENV{CXX})
|
||||||
|
set(CMAKE_Fortran_COMPILER $ENV{FC})
|
||||||
set(CMAKE_ASM_COMPILER ${CMAKE_C_COMPILER})
|
set(CMAKE_ASM_COMPILER ${CMAKE_C_COMPILER})
|
||||||
|
|
||||||
# Discard path returned by pkg-config and associated with HINTS in module
|
# Discard path returned by pkg-config and associated with HINTS in module
|
||||||
|
@ -14,7 +14,8 @@ ENV AS=${CROSS_ROOT}/as \
|
|||||||
CC=${CROSS_ROOT}/gcc \
|
CC=${CROSS_ROOT}/gcc \
|
||||||
CPP=${CROSS_ROOT}/cpp \
|
CPP=${CROSS_ROOT}/cpp \
|
||||||
CXX=${CROSS_ROOT}/g++ \
|
CXX=${CROSS_ROOT}/g++ \
|
||||||
LD=${CROSS_ROOT}/ld
|
LD=${CROSS_ROOT}/ld \
|
||||||
|
FC=${CROSS_ROOT}/gfortran
|
||||||
|
|
||||||
COPY linux-x64/${CROSS_TRIPLE}-noop.sh /usr/bin/${CROSS_TRIPLE}-noop
|
COPY linux-x64/${CROSS_TRIPLE}-noop.sh /usr/bin/${CROSS_TRIPLE}-noop
|
||||||
|
|
||||||
|
@ -14,7 +14,8 @@ ENV AS=${CROSS_ROOT}/as \
|
|||||||
CC=${CROSS_ROOT}/gcc \
|
CC=${CROSS_ROOT}/gcc \
|
||||||
CPP=${CROSS_ROOT}/cpp \
|
CPP=${CROSS_ROOT}/cpp \
|
||||||
CXX=${CROSS_ROOT}/g++ \
|
CXX=${CROSS_ROOT}/g++ \
|
||||||
LD=${CROSS_ROOT}/ld
|
LD=${CROSS_ROOT}/ld \
|
||||||
|
FC=${CROSS_ROOT}/gfortran
|
||||||
|
|
||||||
COPY linux-x86/${CROSS_TRIPLE}-noop.sh /usr/bin/${CROSS_TRIPLE}-noop
|
COPY linux-x86/${CROSS_TRIPLE}-noop.sh /usr/bin/${CROSS_TRIPLE}-noop
|
||||||
|
|
||||||
|
@ -63,7 +63,8 @@ ENV AS=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-as \
|
|||||||
CC=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-gcc \
|
CC=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-gcc \
|
||||||
CPP=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-cpp \
|
CPP=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-cpp \
|
||||||
CXX=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-g++ \
|
CXX=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-g++ \
|
||||||
LD=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-ld
|
LD=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-ld \
|
||||||
|
FC=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-gfortran
|
||||||
|
|
||||||
ENV DEFAULT_DOCKCROSS_IMAGE dockcross/windows-x64
|
ENV DEFAULT_DOCKCROSS_IMAGE dockcross/windows-x64
|
||||||
WORKDIR /work
|
WORKDIR /work
|
||||||
|
@ -63,7 +63,8 @@ ENV AS=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-as \
|
|||||||
CC=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-gcc \
|
CC=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-gcc \
|
||||||
CPP=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-cpp \
|
CPP=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-cpp \
|
||||||
CXX=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-g++ \
|
CXX=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-g++ \
|
||||||
LD=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-ld
|
LD=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-ld \
|
||||||
|
FC=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-gfortran
|
||||||
|
|
||||||
ENV DEFAULT_DOCKCROSS_IMAGE dockcross/windows-x86
|
ENV DEFAULT_DOCKCROSS_IMAGE dockcross/windows-x86
|
||||||
WORKDIR /work
|
WORKDIR /work
|
||||||
|
Loading…
Reference in New Issue
Block a user