Skip to content

Commit 23be6b1

Browse files
committed
Try different setup for binutils as part of GCC 16 build
ChangeLog: * Dockerfile.gcc16:
1 parent f0b29ad commit 23be6b1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Dockerfile.gcc16

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@ RUN apt-get install -y --no-install-recommends \
1515
cd /root/gcc-16 && \
1616
curl -L https://github.com/gcc-mirror/gcc/archive/master.tar.gz \
1717
| tar -xz --strip-components=1 && \
18-
mkdir binutils && cd binutils && \
18+
mkdir /root/binutils && cd /root/binutils && \
1919
curl -L https://sourceware.org/pub/binutils/releases/binutils-2.45.tar.gz \
2020
| tar -xz --strip-components=1 && \
21-
cd /root/gcc-16/obj && ../configure --enable-languages=c,c++,lto --prefix=/opt/gcc-16 --enable-checking=release && \
21+
cd /root/gcc-16 && \
22+
ln -s ../binutils/bfd ../binutils/gas ../binutils/binutils ../binutils/ld ../binutils/libctf \
23+
../binutils/libsframe ../binutils/opcodes . && \
24+
cd /root/gcc-16/obj && \
25+
../configure --enable-languages=c,c++,lto --prefix=/opt/gcc-16 --enable-checking=release && \
2226
make BOOT_CFLAGS=-march=x86-64-v3 -j3 && \
2327
make -j3 install-strip && \
2428
update-alternatives --install /usr/bin/gcc-16 gcc-16 /opt/gcc-16/bin/gcc 160 --slave /usr/bin/g++-16 g++-16 /opt/gcc-16/bin/g++ && \

0 commit comments

Comments
 (0)