[MacPorts] #40713: llvm-gcc42: libgomp.spec: No such file or directory

MacPorts noreply at macports.org
Thu Oct 10 04:31:35 PDT 2013


#40713: llvm-gcc42: libgomp.spec: No such file or directory
---------------------------+----------------------
  Reporter:  simon4nine@…  |      Owner:  erickt@…
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.2.0
Resolution:                |   Keywords:
      Port:  llvm-gcc42    |
---------------------------+----------------------

Comment (by aronnax@…):

 I notice that gcc45 and relatives have a section like the following in
 their {{{post-destroot}}} phase, that create symlinks to files provided by
 libgcc:

 {{{
     foreach dylib {libgcc_ext.10.4.dylib libgcc_ext.10.5.dylib
 libgcc_s.1.dylib libgfortran.3.dylib libstdc++.6.dylib libobjc-gnu.2.dylib
 libgomp.1.dylib libssp.0.dylib} {
         # Different OS versions (eg: Leopard) or architectures (eg: PPC)
 don't produce all the dylibs
         # https://trac.macports.org/ticket/40098
         # https://trac.macports.org/ticket/40100
         if {[file exists ${destroot}${prefix}/lib/${name}/${dylib}]} {
             delete ${destroot}${prefix}/lib/${name}/${dylib}
             ln -s ${prefix}/lib/libgcc/${dylib}
 ${destroot}${prefix}/lib/${name}/${dylib}
         }

         if {[variant_isset universal]} {
             foreach archdir [glob ${destroot}${prefix}/lib/${name}/*/] {
                 if {[file exists ${archdir}/${dylib}]} {
                     delete ${archdir}/${dylib}
                     ln -s ${prefix}/lib/libgcc/${dylib}
 ${archdir}/${dylib}
                 }
             }
         }
     }
 }}}

 This is what is lacking in llvm-gcc42.

-- 
Ticket URL: <https://trac.macports.org/ticket/40713#comment:9>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list