<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/fa8ea7c8536f48450ae36df87c407d35fb61caf1">https://github.com/macports/macports-ports/commit/fa8ea7c8536f48450ae36df87c407d35fb61caf1</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit fa8ea7c8536f48450ae36df87c407d35fb61caf1
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Thu Jul 21 15:43:55 2022 +0100
<span style='display:block; white-space:pre;color:#404040;'> compilers PG: Automatically handle gcc rpath when gcc10+ used for fortran
</span>---
_resources/port1.0/group/compilers-1.0.tcl | 15 +++++++++++++++
1 file changed, 15 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/compilers-1.0.tcl b/_resources/port1.0/group/compilers-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index d8d8244654b..74d9ed09271 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/compilers-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/compilers-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -798,6 +798,21 @@ proc compilers::add_fortran_legacy_support {} {
</span>
port::register_callback compilers::add_fortran_legacy_support
<span style='display:block; white-space:pre;background:#e0ffe0;'>+proc compilers::add_gcc_rpath_support {} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global compilers.gcc_default prefix
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[fortran_variant_name] eq "gfortran"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set fortran_compiler ${compilers.gcc_default}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set fortran_compiler [fortran_variant_name]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${fortran_compiler} in "gcc12 gcc11 gcc10 gccdevel"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.ldflags-delete -Wl,-rpath ${prefix}/lib/libgcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.ldflags-append -Wl,-rpath ${prefix}/lib/libgcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+port::register_callback compilers::add_gcc_rpath_support
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> proc compilers::fortran_legacy_support_proc {option action args} {
if {$action ne "set"} return
compilers::add_fortran_legacy_support
</pre><pre style='margin:0'>
</pre>