From 0562417587df1feb936f66b2273fd1c3ce835168 Mon Sep 17 00:00:00 2001 From: Sergey Vorontsov Date: Thu, 7 Dec 2023 15:24:44 +0300 Subject: [PATCH] Update ubuntu xenial gcc version to 8.2.0 Install GCC version 8.2. This is necessary in order to compile on an old system with glibc 2.23 using a more modern compiler. --- ubuntu/xenial/Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ubuntu/xenial/Dockerfile b/ubuntu/xenial/Dockerfile index ac8c4e4..f3c4c64 100644 --- a/ubuntu/xenial/Dockerfile +++ b/ubuntu/xenial/Dockerfile @@ -40,5 +40,12 @@ RUN apt-get update && apt-get install -y --force-yes \ alien \ dh-systemd +# Install gcc-8 +RUN add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ + apt-get update -y && \ + apt-get install gcc-8 g++-8 -y && \ + update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 60 --slave /usr/bin/g++ g++ /usr/bin/g++-8 && \ + update-alternatives --config gcc + # Enable sudo without password RUN echo '%adm ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers