Skip to content

Commit 13b9a28

Browse files
authored
Bring back the azl 4 gcc symlink
1 parent 25901d4 commit 13b9a28

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • src/azurelinux/4.0/net11.0/crossdeps/amd64

src/azurelinux/4.0/net11.0/crossdeps/amd64/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ RUN dnf update -y && \
4040
azure-cli \
4141
&& dnf clean all
4242

43+
# GNU toolchain is installed in 'x86_64-azurelinux-linux' directory which is not recognized by
44+
# clang (https://github.com/llvm/llvm-project/blob/main/clang/lib/Driver/ToolChains/Gnu.cpp),
45+
# so we create a symlink with -pc- triplet.
46+
RUN ln -s /usr/lib/gcc/$(uname -m)-azurelinux-linux /usr/lib/gcc/$(uname -m)-pc-linux-gnu && \
47+
ln -s /usr/include/c++/15/$(uname -m)-azurelinux-linux /usr/include/c++/15/$(uname -m)-pc-linux-gnu;
48+
4349
COPY --from=powershell /usr/share/dotnet/LICENSE.txt /usr/share/dotnet/ThirdPartyNotices.txt /usr/share/dotnet/dotnet /usr/share/dotnet/
4450
COPY --from=powershell /usr/share/dotnet/host /usr/share/dotnet/host
4551
COPY --from=powershell /usr/share/dotnet/shared /usr/share/dotnet/shared

0 commit comments

Comments
 (0)