[Xapian-tickets] [Xapian] #751: Add `-lrt` to pkg-config if necessary.

Xapian nobody at xapian.org
Mon Oct 2 23:34:32 BST 2017


#751: Add `-lrt` to pkg-config if necessary.
--------------------------+-------------------------------
 Reporter:  mgautier      |             Owner:  olly
     Type:  defect        |            Status:  assigned
 Priority:  normal        |         Milestone:  1.4.5
Component:  Build system  |           Version:  git master
 Severity:  normal        |        Resolution:
 Keywords:                |        Blocked By:
 Blocking:                |  Operating System:  All
--------------------------+-------------------------------
Changes (by olly):

 * status:  new => assigned
 * milestone:   => 1.4.5


Comment:

 Linux does have `DT_NEEDED` for shared libraries - it's essentially a list
 of dependencies embedded in a shared library so that when the system
 dynamically loads `libxapian.so` it knows it has to dynamically load all
 these other libraries:

 {{{
 $ readelf -a /usr/lib/x86_64-linux-gnu/libxapian.so|grep NEEDED
  0x0000000000000001 (NEEDED)             Shared library: [librt.so.1]
  0x0000000000000001 (NEEDED)             Shared library: [libz.so.1]
  0x0000000000000001 (NEEDED)             Shared library: [libuuid.so.1]
  0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]
  0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]
  0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
  0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
 }}}

 I don't think there's an equivalent way for a `.a` to encode dependencies,
 so it has to be handled at a higher level.

 Thanks for the confirmation, will apply the `Libs.private` change for
 1.4.5.

--
Ticket URL: <https://trac.xapian.org/ticket/751#comment:4>
Xapian <https://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list