Skip to content

Commit ec5c11b

Browse files
committed
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.
1 parent 50caae4 commit ec5c11b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ubuntu/xenial/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,16 @@ RUN apt-get update && apt-get install -y --force-yes \
4040
alien \
4141
dh-systemd
4242

43+
# Install gcc-8
44+
RUN apt-get update -y && \
45+
apt-get upgrade -y && \
46+
apt-get dist-upgrade -y && \
47+
apt-get install build-essential software-properties-common zlib1g-dev -y && \
48+
add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
49+
apt-get update -y && \
50+
apt-get install gcc-8 g++-8 -y && \
51+
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 60 --slave /usr/bin/g++ g++ /usr/bin/g++-8 && \
52+
update-alternatives --config gcc
53+
4354
# Enable sudo without password
4455
RUN echo '%adm ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

0 commit comments

Comments
 (0)