Commit dc63f74 1 parent 9594df7 commit dc63f74 Copy full SHA for dc63f74
File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -2,18 +2,20 @@ ARG UbuntuVersion=20.04
2
2
3
3
FROM ubuntu:$UbuntuVersion
4
4
5
- ARG Gcc12Version=12.1.0
5
+ RUN apt update && apt install -y wget build-essential file flex libz-dev libzstd-dev
6
6
7
7
# Download gcc source code
8
- RUN apt update && apt install -y wget build-essential file flex libz-dev libzstd-dev
8
+ ARG Gcc12Version=12.1.0
9
9
RUN wget https://gcc.gnu.org/pub/gcc/releases/gcc-$Gcc12Version/gcc-$Gcc12Version.tar.gz
10
10
RUN tar xf gcc-$Gcc12Version.tar.gz
11
11
RUN cd /gcc-$Gcc12Version && ./contrib/download_prerequisites
12
12
13
13
# Build x86_64-gcc-12
14
+ ARG BuildVersion=1
14
15
RUN mkdir /x86_64-gcc-12
15
16
WORKDIR /x86_64-gcc-12
16
17
RUN /gcc-$Gcc12Version/configure \
18
+ --with-pkgversion="xyb-build-$BuildVersion https://github.com/xieyubo/gcc-build" \
17
19
--enable-languages=c,c++ \
18
20
--prefix=/usr \
19
21
--with-gcc-major-version-only \
@@ -26,6 +28,7 @@ RUN /gcc-$Gcc12Version/configure \
26
28
--libdir=/usr/lib \
27
29
--disable-nls \
28
30
--enable-clocale=gnu \
31
+ --enable-libstdcxx-backtrace=yes \
29
32
--enable-libstdcxx-debug \
30
33
--enable-libstdcxx-time=yes \
31
34
--with-default-libstdcxx-abi=new \
@@ -48,7 +51,6 @@ RUN /gcc-$Gcc12Version/configure \
48
51
--target=x86_64-linux-gnu
49
52
RUN make -j`nproc`
50
53
51
- ARG BuildVersion=1
52
54
ARG UbuntuVersion=20.04
53
55
54
56
RUN make install-strip DESTDIR=/gcc-$Gcc12Version-$BuildVersion-ubuntu-$UbuntuVersion
You can’t perform that action at this time.
0 commit comments