Changes between Initial Version and Version 1 of Ticket #63115, comment 24


Ignore:
Timestamp:
Mar 3, 2022, 2:02:33 PM (3 years ago)
Author:
kamischi (Karl-Michael Schindler)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #63115, comment 24

    initial v1  
    11The problem is also present on ortep3 on arm. I am also working on a new port named mopac, which builds the Fortran code with cmake and has the same problem. What do you think about a post build work around with install_name_tool as a preliminary fix for arm?
     2
     3This is the preliminary fix from my pull request for ortep3:
     4
     5{{{
     6post-build {
     7 # Preliminary fix of not finding the fortran libraries
     8     if { ${os.arch} eq "arm" } {
     9         set libgfortran [glob -tails -directory ${prefix}/lib/libgcc libgfortran.*.dylib]
     10         set libquadmath [glob -tails -directory ${prefix}/lib/libgcc libquadmath.*.dylib]
     11         system -W ${worksrcpath} "install_name_tool -change @rpath/${libgfortran} @executable_path/../lib/libgcc/${libgfortran} ortep3"
     12         system -W ${worksrcpath} "install_name_tool -change @rpath/${libquadmath} @executable_path/../lib/libgcc/${libquadmath} ortep3"
     13     }
     14 }
     15}}}