Skip to content

Commit

Permalink
Update ubuntu xenial gcc version to 8.2.0
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
foxzi committed Dec 11, 2023
1 parent 50caae4 commit 0562417
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ubuntu/xenial/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0562417

Please sign in to comment.