mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-22 16:24:27 +01:00
Fixes to backward compatibility.
This commit is contained in:
parent
6191491ba5
commit
8508d3bcc4
@ -25,13 +25,13 @@ RUN apt-get install -y libglib2.0-dev zlib1g-dev libpixman-1-dev && \
|
||||
cd .. && rm -rf qemu-2.6.0
|
||||
|
||||
ENV CROSS_TRIPLE aarch64-unknown-linux-gnueabi
|
||||
ENV CROSS_ROOT /opt/x-tools/${CROSS_TRIPLE}
|
||||
ENV AS=/opt/x-tools/${CROSS_TRIPLE}/bin/${CROSS_TRIPLE}-as \
|
||||
AR=/opt/x-tools/${CROSS_TRIPLE}/bin/${CROSS_TRIPLE}-ar \
|
||||
CC=/opt/x-tools/${CROSS_TRIPLE}/bin/${CROSS_TRIPLE}-gcc \
|
||||
CPP=/opt/x-tools/${CROSS_TRIPLE}/bin/${CROSS_TRIPLE}-cpp \
|
||||
CXX=/opt/x-tools/${CROSS_TRIPLE}/bin/${CROSS_TRIPLE}-g++ \
|
||||
LD=/opt/x-tools/${CROSS_TRIPLE}/bin/${CROSS_TRIPLE}-ld
|
||||
ENV CROSS_ROOT /usr/bin/${CROSS_TRIPLE}
|
||||
ENV AS=/usr/bin/${CROSS_TRIPLE}/bin/${CROSS_TRIPLE}-as \
|
||||
AR=/usr/bin/${CROSS_TRIPLE}/bin/${CROSS_TRIPLE}-ar \
|
||||
CC=/usr/bin/${CROSS_TRIPLE}/bin/${CROSS_TRIPLE}-gcc \
|
||||
CPP=/usr/bin/${CROSS_TRIPLE}/bin/${CROSS_TRIPLE}-cpp \
|
||||
CXX=/usr/bin/${CROSS_TRIPLE}/bin/${CROSS_TRIPLE}-g++ \
|
||||
LD=/usr/bin/${CROSS_TRIPLE}/bin/${CROSS_TRIPLE}-ld
|
||||
|
||||
ENV DEFAULT_DOCKCROSS_IMAGE dockcross/linux-arm64
|
||||
WORKDIR /work
|
||||
|
@ -5,17 +5,17 @@ set(CMAKE_SYSTEM_PROCESSOR aarch64)
|
||||
|
||||
set(cross_triple "aarch64-unknown-linux-gnueabi")
|
||||
|
||||
set(CMAKE_C_COMPILER /opt/x-tools/aarch64-unknown-linux-gnueabi/bin/${cross_triple}-cc)
|
||||
set(CMAKE_CXX_COMPILER /opt/x-tools/aarch64-unknown-linux-gnueabi/bin/${cross_triple}-c++)
|
||||
set(CMAKE_Fortran_COMPILER /opt/x-tools/aarch64-unknown-linux-gnueabi/bin/${cross_triple}-gfortran)
|
||||
set(CMAKE_C_COMPILER /usr/bin/aarch64-unknown-linux-gnueabi/bin/${cross_triple}-cc)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/aarch64-unknown-linux-gnueabi/bin/${cross_triple}-c++)
|
||||
set(CMAKE_Fortran_COMPILER /usr/bin/aarch64-unknown-linux-gnueabi/bin/${cross_triple}-gfortran)
|
||||
|
||||
set(CMAKE_FIND_ROOT_PATH /opt/x-tools/aarch64-unknown-linux-gnueabi)
|
||||
set(CMAKE_FIND_ROOT_PATH /usr/bin/aarch64-unknown-linux-gnueabi)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||
set(CMAKE_SYSROOT /opt/x-tools/aarch64-unknown-linux-gnueabi/aarch64-unknown-linux-gnueabi/sysroot)
|
||||
set(CMAKE_SYSROOT /usr/bin/aarch64-unknown-linux-gnueabi/aarch64-unknown-linux-gnueabi/sysroot)
|
||||
|
||||
set(CMAKE_CXX_FLAGS "-I /opt/x-tools/aarch64-unknown-linux-gnueabi/include")
|
||||
set(CMAKE_CXX_FLAGS "-I /usr/bin/aarch64-unknown-linux-gnueabi/include")
|
||||
set(ADDITIONAL_COMPILER_FLAGS "-L /usr/lib/aarch64-linux-gnu -Wl,-rpath-link,/usr/lib/aarch64-linux-gnu -Wl,-rpath-link,/lib/aarch64-linux-gnu")
|
||||
|
||||
set(CMAKE_CROSSCOMPILING_EMULATOR /usr/bin/qemu-aarch64)
|
||||
|
@ -32,7 +32,7 @@ CT_LOCAL_TARBALLS_DIR="${HOME}/src"
|
||||
CT_SAVE_TARBALLS=y
|
||||
CT_WORK_DIR="${CT_TOP_DIR}/.build"
|
||||
CT_BUILD_TOP_DIR="${CT_WORK_DIR}/${CT_HOST:+HOST-${CT_HOST}/}${CT_TARGET}"
|
||||
CT_PREFIX_DIR="/opt/x-tools/${CT_TARGET}"
|
||||
CT_PREFIX_DIR="/usr/bin/${CT_TARGET}"
|
||||
CT_RM_RF_PREFIX_DIR=y
|
||||
CT_REMOVE_DOCS=y
|
||||
CT_PREFIX_DIR_RO=y
|
||||
@ -417,7 +417,7 @@ CT_CC_SUPPORT_GOLANG=y
|
||||
# Additional supported languages:
|
||||
#
|
||||
CT_CC_LANG_CXX=y
|
||||
# CT_CC_LANG_FORTRAN is not set
|
||||
CT_CC_LANG_FORTRAN=y
|
||||
# CT_CC_LANG_JAVA is not set
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user