commit aff56bcb60184257320bb60adda0f172a01cab0a
parent 3bd57f47e84e31af0c13b60482fbd01f12ee6018
Author: Jan Pobrislo <ccx@te2000.cz>
Date: Wed, 17 Dec 2025 23:30:51 +0000
gcc: debug harder
Diffstat:
5 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/templates/pkg/gcc b/templates/pkg/gcc
@@ -96,7 +96,7 @@ mkdir "$objdir"
cd "$objdir"
st='-static --static'
-fl="-g -Og"
+fl="-g -O0"
repro="-ffile-prefix-map=${installdir}="
repro="$repro -ffile-prefix-map=${sysroot}="
repro="$repro -ffile-prefix-map=${src}=builddir"
@@ -107,6 +107,7 @@ repro="$repro -ffile-prefix-map=${src}=builddir"
# So we put everything in $prefix/lib and just place a symlink in proper directories
# to avoid gcc or it's install scripts getting confused by unusual layout. #}
"../${src##*/}/configure" \ {#- use relative path here as it's stored in the binary #}
+ --enable-checking \ {#- for debugging #}
--enable-languages=c,c++ \
--prefix="/" \
--bindir="/{{bindir}}" \
diff --git a/variants/ccx-x86_64/gcc b/variants/ccx-x86_64/gcc
@@ -114,12 +114,13 @@ mkdir "$objdir"
cd "$objdir"
st='-static --static'
-fl="-g -Og"
+fl="-g -O0"
repro="-ffile-prefix-map=${installdir}="
repro="$repro -ffile-prefix-map=${sysroot}="
repro="$repro -ffile-prefix-map=${src}=builddir"
"../${src##*/}/configure" \
+ --enable-checking \
--enable-languages=c,c++ \
--prefix="/" \
--bindir="/command" \
diff --git a/variants/ccx-x86_64/toolchain.environment b/variants/ccx-x86_64/toolchain.environment
@@ -1,4 +1,4 @@
#!/usr/bin/env pthbs-build
#+musl.ab3439f0d135622f4b857997ecbda84ac545422db148012987cca66241aaf7f6
-#+gcc.793bcf987e2b81e132246636156e0cbdf20e91386aa6fc656a23f30e85ad0f7c
+#+gcc.a56356e83c4ab45b5b0efb13ea9974f830ee7a375159ac0b65a844ee373f047f
#+binutils.e27b3c2c7968d0c9ecd3f1be245f3ae14f44e4eeb82cd538cfc0f96f1afc4ef0
\ No newline at end of file
diff --git a/variants/root-x86_64/gcc b/variants/root-x86_64/gcc
@@ -114,12 +114,13 @@ mkdir "$objdir"
cd "$objdir"
st='-static --static'
-fl="-g -Og"
+fl="-g -O0"
repro="-ffile-prefix-map=${installdir}="
repro="$repro -ffile-prefix-map=${sysroot}="
repro="$repro -ffile-prefix-map=${src}=builddir"
"../${src##*/}/configure" \
+ --enable-checking \
--enable-languages=c,c++ \
--prefix="/" \
--bindir="/command" \
diff --git a/variants/root-x86_64/toolchain.environment b/variants/root-x86_64/toolchain.environment
@@ -1,4 +1,4 @@
#!/usr/bin/env pthbs-build
#+musl.1358b81a27c11cc51948ea8c8732f646d6f02ed63f255e63e3633fe9ae023664
-#+gcc.d8dc9f861b73cccf1e4422a6618a4b4bc24e14db5795587703612a11769a4b6f
+#+gcc.ed2488d2a9605078fc3da47ef10a338563383351f42d5891e99e6509a21f1c6a
#+binutils.06634a7c6783445d52e5e45894b0c379f5be4df44124169e50096929bef7b5ee
\ No newline at end of file