[Xapian-tickets] [Xapian] #732: Consider using @rpath on OS X
Xapian
nobody at xapian.org
Mon May 8 23:08:40 BST 2023
#732: Consider using @rpath on OS X
--------------------------+-------------------------------
Reporter: James Aylett | Owner: Olly Betts
Type: defect | Status: closed
Priority: normal | Milestone:
Component: Build system | Version:
Severity: normal | Resolution: fixed
Keywords: | Blocked By:
Blocking: | Operating System: Mac OS X
--------------------------+-------------------------------
Changes (by Olly Betts):
* status: new => closed
* resolution: => fixed
Comment:
This has languished for too many years so I've documented the issue and
how to workaround it in xapian-bindings/HACKING in
f84c54fd4b3ec2d6df8b1c7d8fe56373b890e25f and am closing this as having
been addressed. If the new text could be improved, please do so.
If someone developing on macos wants to improve the situation that would
be great, but it's not something I can realistically do without a mac. I
think it wouldn't be very hard to get xapian-core's top-level
`Makefile.am` to do the equivalent of `install_name_tool -id
'@rpath/libxapian.30.dylib' .libs/libxapian.30.dylib` - the trickiest part
I can see is that we may need to do it conditional on there being an rpath
having been set by libtool (because if there isn't an rpath, I suspect
using `@rpath` may be problematic. This really needs someone with macos
knowledge, or at least the ability to interactively test this.
Also we'd need to work out how best to hook in this extra command.
Potentially it could be an explicit manual step to run if you want this to
work, which at least would avoid risk of it breaking the user-install
workflow.
--
Ticket URL: <https://trac.xapian.org/ticket/732#comment:7>
Xapian <https://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list