From 3334de356b7e824ef88074df0ef5b8dbf0f69284 Mon Sep 17 00:00:00 2001
From: Wouter Deconinck <wdconinc@gmail.com>
Date: Mon, 27 Nov 2023 14:09:18 +0000
Subject: [PATCH] fix: ensure cc and c++ point to gcc and g++

---
 containers/debian/base.Dockerfile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/containers/debian/base.Dockerfile b/containers/debian/base.Dockerfile
index dcc723ee4..c2b9792cd 100644
--- a/containers/debian/base.Dockerfile
+++ b/containers/debian/base.Dockerfile
@@ -104,6 +104,9 @@ update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++${GCC} 100
 update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran${GCC} 100
 update-alternatives --install /usr/bin/clang clang /usr/bin/clang${CLANG} 100
 update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++${CLANG} 100
+# Default to gcc
+update-alternatives --install /usr/bin/cc  cc  /usr/bin/gcc 100
+update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 100
 # Check versions
 gcc --version
 clang --version
-- 
GitLab