Skip to content

Commit 8605109

Browse files
TamarChristinaArmdkm
authored andcommitted
gcc-cross: Add LDPATH for cross-tools
1 parent e871b69 commit 8605109

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ RUN apt-get update -y -q && apt-get upgrade -y -q && apt-get upgrade -y -q && \
8080
## and bootstrap everything.
8181
ENV PATH="/opt/compiler-explorer/gcc-14.2.0/bin:${PATH}"
8282
ENV LD_LIBRARY_PATH="/opt/compiler-explorer/gcc-14.2.0/lib64:${PATH}"
83+
# This is needed because cross-tools needs to look within this location for a libatomic from
84+
# the host toolchain. But cross-tools overrides the sysroot, and so problems occur during
85+
# building because GCC now links -latomic by default.
86+
ENV LDFLAGS="-L/opt/compiler-explorer/gcc-14.2.0/lib64"
8387

8488
WORKDIR /opt
8589

0 commit comments

Comments
 (0)