pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Pointing cmake to libraries



Hauke Fath <hf%spg.tu-darmstadt.de@localhost> writes:

> A package (hiawatha) builds a set of shared libraries, and installs
> them at a custom path (${PREFIX}/lib/hiawatha). Unfortunately, the
> cmake build process does not provide the rpath to the binaries:
>
> => Checking for missing run-time search paths in hiawatha-11.1
> ERROR: sbin/hiawatha: missing library: libmbedx509.so.4
>
> %  objdump -x 
> /var/obj/pkgsrc/hauke/hiawatha/work/.destdir/usr/pkg/sbin/hiawatha |
> grep PATH
>   RPATH                /usr/pkg/lib

Clearly that needs to have an rpath of /usr/pkg/lib/hiawatha also.

> I set various cmake variables, as suggested by the interwebs, to no
> avail.

First, there are ways to turn off cmake's unhelpful hiding of build
commands, and I think we ought to do this in pkgsrc's cmake support.
The modern culture of not outputting the commands and having eye candy
instead of an actual build log is unhelpful.

It may be that you not only have to set something like (from memory)
CMAKE_INSTALL_RPATH but to fix the cmake config files.

Have you built without pkgsrc, to a different prefix?

Have you reported this upstream?

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index