summaryrefslogtreecommitdiffstats
path: root/debian/patches/skip-bootstrap-multilib.diff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:22:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:22:56 +0000
commit3f472a4e5ca21e3ddb13737473e636b2b11a408a (patch)
tree7db1ab317884b9f6e04b6e13737c1679879cb97a /debian/patches/skip-bootstrap-multilib.diff
parentAdding upstream version 13.2.0. (diff)
downloadgcc-13-debian.tar.xz
gcc-13-debian.zip
Adding debian version 13.2.0-10.debian/13.2.0-10debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/skip-bootstrap-multilib.diff')
-rw-r--r--debian/patches/skip-bootstrap-multilib.diff22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/skip-bootstrap-multilib.diff b/debian/patches/skip-bootstrap-multilib.diff
new file mode 100644
index 0000000..a07b8c1
--- /dev/null
+++ b/debian/patches/skip-bootstrap-multilib.diff
@@ -0,0 +1,22 @@
+# DP: Skip non-default multilib and libstdc++-v3 debug builds in bootstrap builds
+
+--- a/src/config-ml.in
++++ b/src/config-ml.in
+@@ -492,6 +492,17 @@ esac
+ # Tests like `if [ -n "$multidirs" ]' require it.
+ multidirs=`echo "$multidirs" | sed -e 's/^[ ][ ]*//' -e 's/[ ][ ]*$//' -e 's/[ ][ ]*/ /g'`
+
++# stage1 and stage2 builds of the non-default multilib configurations
++# are not needed; skip these to save some build time.
++if [ -f ../../stage_final ] && [ -f ../../stage_current ]; then
++ stage_final=`cat ../../stage_final`
++ stage_current=`cat ../../stage_current`
++ if [ "$stage_current" != "$stage_final" ]; then
++ echo "Skip `basename $ml_realsrcdir` non-default multilibs for bootstrap stage $stage_current"
++ multidirs=
++ fi
++fi
++
+ # Add code to library's top level makefile to handle building the multilib
+ # subdirs.
+