<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/d9d0730c64344391e576807ecb19b77540f025de">https://github.com/macports/macports-ports/commit/d9d0730c64344391e576807ecb19b77540f025de</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new d9d0730c643 gcc_dependencies: Do not depend directly versioned libgcc for primary runtime
</span>d9d0730c643 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit d9d0730c64344391e576807ecb19b77540f025de
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Fri Jan 7 09:47:31 2022 +0000
<span style='display:block; white-space:pre;color:#404040;'> gcc_dependencies: Do not depend directly versioned libgcc for primary runtime
</span>---
_resources/port1.0/compilers/gcc_dependencies.tcl | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/compilers/gcc_dependencies.tcl b/_resources/port1.0/compilers/gcc_dependencies.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index abe4a7a5961..76152d378c1 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/compilers/gcc_dependencies.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/compilers/gcc_dependencies.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,10 +1,23 @@
</span> # set library dependencies of GCC compilers to the variable libgccs based on gcc_version
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# GCC version providing the primary runtime
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Note settings here *must* match those in the lang/libgcc port and compilers PG
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if { ${os.major} < 10 } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set gcc_main_version 7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set gcc_main_version 11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # compiler links against libraries in libgcc\d* and/or libgcc-devel
if {[vercmp ${gcc_version} 4.6] < 0} {
set libgccs "path:share/doc/libgcc/README:libgcc port:libgcc45"
} elseif {[vercmp ${gcc_version} 7] < 0} {
set libgccs "path:share/doc/libgcc/README:libgcc port:libgcc6"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} elseif {[vercmp ${gcc_version} ${gcc_main_version}] < 0} {
</span> set libgccs "path:share/doc/libgcc/README:libgcc port:libgcc${gcc_version}"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Using primary GCC version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Do not depend directly on primary runtime port, as implied by libgcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # and doing so prevents libgcc-devel being used as an alternative.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set libgccs "path:share/doc/libgcc/README:libgcc"
</span> }
</pre><pre style='margin:0'>
</pre>