[MacPorts] #59436: libxml2 @2.9.9: libxml2-config.cmake LIBXML2_LIBRARIES includes libxml2's dependencies, which results in overlinking

MacPorts noreply at macports.org
Wed Oct 23 19:34:02 UTC 2019


#59436: libxml2 @2.9.9: libxml2-config.cmake LIBXML2_LIBRARIES includes libxml2's
dependencies, which results in overlinking
-------------------------+--------------------
  Reporter:  ryandesign  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.6.2
Resolution:              |   Keywords:
      Port:  libxml2     |
-------------------------+--------------------

Comment (by jmroot):

 Replying to [comment:4 michaelld]:
 > Even static links shouldn't require it, as it should be built-in to the
 static library. Or, that's my belief / understanding of how these things
 should work.

 That's not the case; when linking an executable statically you really do
 need to explicitly mention every library that provides any symbol used by
 your code either directly or indirectly. GNU libtool has code to automate
 this via the .la files installed with every library, which is why we
 already delete (or remove the dependency information from) all .la files.

-- 
Ticket URL: <https://trac.macports.org/ticket/59436#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list