[MacPorts] #35041: metis: install a dynamic library

MacPorts noreply at macports.org
Sun Jul 1 05:09:53 PDT 2012


#35041: metis: install a dynamic library
--------------------------------------+-------------------------------------
  Reporter:  ryandesign@…             |       Owner:  macports-tickets@…                   
      Type:  enhancement              |      Status:  closed                               
  Priority:  Normal                   |   Milestone:                                       
 Component:  ports                    |     Version:                                       
Resolution:  fixed                    |    Keywords:                                       
      Port:  metis                    |  
--------------------------------------+-------------------------------------
Changes (by cal@…):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 Done in r94837. Metis should always set the `CMAKE_INSTALL_NAME_DIR`
 variable when building a shared library, because without it the resulting
 library contains a relative path as identifier![1], causing binaries
 linked against this library to be linked against a relative path![2],
 requiring the use of `DYLD_LIBRARY_PATH` and making rev-upgrade complain.

 ![1]
 {{{
 :) clemens at cSchlepptop:/opt/dports/math/metis$ otool -L
 /opt/local/lib/libmetis.dylib
 /opt/local/lib/libmetis.dylib:
         libmetis.dylib (compatibility version 0.0.0, current version
 0.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 159.1.0)
 }}}

 ![2]
 {{{
 :) clemens at cSchlepptop:/opt/dports/math/metis$ otool -L
 /opt/local/bin/cmpfillin
 /opt/local/bin/cmpfillin:
         libmetis.dylib (compatibility version 0.0.0, current version
 0.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 159.1.0)
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/35041#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list