mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-22 16:24:27 +01:00
Fix manylinux and update to devtoolset-10
Fix manylinux and update to devtoolset-10 Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
parent
09e8f01e94
commit
e25f67aea9
@ -18,7 +18,7 @@ ENV MANYLINUX_DEPS="glibc-devel glibc-devel.i686 libstdc++-devel glib2-devel lib
|
||||
|
||||
ENV PYTHON_COMPILE_DEPS="python-devel zlib-devel bzip2-devel expat-devel ncurses-devel readline-devel tk-devel gdbm-devel libdb-devel libpcap-devel xz-devel openssl-devel keyutils-libs-devel krb5-devel libcom_err-devel libidn-devel curl-devel perl-devel"
|
||||
|
||||
ENV TOOLCHAIN_DEPS="devtoolset-9-binutils devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-gcc-gfortran"
|
||||
ENV TOOLCHAIN_DEPS="devtoolset-10-binutils devtoolset-10-gcc devtoolset-10-gcc-c++ devtoolset-10-gcc-gfortran"
|
||||
|
||||
# Install dependent packages required for `ct-ng`.
|
||||
RUN \
|
||||
@ -62,7 +62,7 @@ RUN \
|
||||
rm -rf /dockcross/crosstool /dockcross/install-crosstool-ng-toolchain.sh && \
|
||||
# Remove sudo provided by devtoolset since it doesn't work with
|
||||
# our sudo wrapper calling gosu.
|
||||
rm -f /opt/rh/devtoolset-9/root/usr/bin/sudo
|
||||
rm -f /opt/rh/devtoolset-10/root/usr/bin/sudo
|
||||
|
||||
# Restore our default workdir (from "dockcross/base").
|
||||
WORKDIR /work
|
||||
|
@ -23,6 +23,7 @@ RUN \
|
||||
rm -f /opt/rh/devtoolset-7/root/usr/bin/sudo && \
|
||||
rm -f /opt/rh/devtoolset-8/root/usr/bin/sudo && \
|
||||
rm -f /opt/rh/devtoolset-9/root/usr/bin/sudo && \
|
||||
rm -f /opt/rh/devtoolset-10/root/usr/bin/sudo && \
|
||||
/buildscripts/install-python-packages.sh && \
|
||||
rm -rf /buildscripts
|
||||
|
||||
|
@ -16,7 +16,7 @@ RUN echo $'#!/bin/bash\n\
|
||||
LD_PRELOAD=/usr/lib64/libcurl.so.4 /usr/bin/yum "$@"' > /usr/local/bin/yum && chmod a+x /usr/local/bin/yum
|
||||
|
||||
ENV CROSS_TRIPLE x86_64-linux-gnu
|
||||
ENV CROSS_ROOT /opt/rh/devtoolset-9/root/usr/bin
|
||||
ENV CROSS_ROOT /opt/rh/devtoolset-10/root/usr/bin
|
||||
ENV AS=${CROSS_ROOT}/as \
|
||||
AR=${CROSS_ROOT}/ar \
|
||||
CC=${CROSS_ROOT}/gcc \
|
||||
|
@ -5,7 +5,7 @@ set(CMAKE_SYSTEM_PROCESSOR x86_64)
|
||||
|
||||
set(MANYLINUX2014 TRUE)
|
||||
|
||||
set(CMAKE_C_COMPILER /opt/rh/devtoolset-9/root/usr/bin/gcc)
|
||||
set(CMAKE_CXX_COMPILER /opt/rh/devtoolset-9/root/usr/bin/g++)
|
||||
set(CMAKE_C_COMPILER /opt/rh/devtoolset-10/root/usr/bin/gcc)
|
||||
set(CMAKE_CXX_COMPILER /opt/rh/devtoolset-10/root/usr/bin/g++)
|
||||
set(CMAKE_ASM_COMPILER ${CMAKE_C_COMPILER})
|
||||
set(CMAKE_Fortran_COMPILER /opt/rh/devtoolset-9/root/usr/bin/gfortran)
|
||||
set(CMAKE_Fortran_COMPILER /opt/rh/devtoolset-10/root/usr/bin/gfortran)
|
||||
|
@ -16,7 +16,7 @@ RUN echo $'#!/bin/bash\n\
|
||||
LD_PRELOAD=/usr/lib/libcurl.so.4 /usr/bin/yum "$@"' > /usr/local/bin/yum && chmod a+x /usr/local/bin/yum
|
||||
|
||||
ENV CROSS_TRIPLE i686-linux-gnu
|
||||
ENV CROSS_ROOT /opt/rh/devtoolset-9/root/usr/bin
|
||||
ENV CROSS_ROOT /opt/rh/devtoolset-10/root/usr/bin
|
||||
ENV AS=${CROSS_ROOT}/as \
|
||||
AR=${CROSS_ROOT}/ar \
|
||||
CC=${CROSS_ROOT}/gcc \
|
||||
|
@ -5,7 +5,7 @@ set(CMAKE_SYSTEM_PROCESSOR i686)
|
||||
|
||||
set(MANYLINUX2014 TRUE)
|
||||
|
||||
set(CMAKE_C_COMPILER /opt/rh/devtoolset-9/root/usr/bin/gcc)
|
||||
set(CMAKE_CXX_COMPILER /opt/rh/devtoolset-9/root/usr/bin/g++)
|
||||
set(CMAKE_C_COMPILER /opt/rh/devtoolset-10/root/usr/bin/gcc)
|
||||
set(CMAKE_CXX_COMPILER /opt/rh/devtoolset-10/root/usr/bin/g++)
|
||||
set(CMAKE_ASM_COMPILER ${CMAKE_C_COMPILER})
|
||||
set(CMAKE_Fortran_COMPILER /opt/rh/devtoolset-9/root/usr/bin/gfortran)
|
||||
set(CMAKE_Fortran_COMPILER /opt/rh/devtoolset-10/root/usr/bin/gfortran)
|
||||
|
Loading…
Reference in New Issue
Block a user