pkgsrc-Users archive

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

Pointing cmake to libraries



Hi,

I have followed cmake down the rabbit hole...

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 PIE in hiawatha-11.1
=> Checking for RELRO in hiawatha-11.1
=> Checking for missing run-time search paths in hiawatha-11.1
ERROR: sbin/hiawatha: missing library: libmbedx509.so.4
ERROR: sbin/hiawatha: missing library: libmbedcrypto.so.11
ERROR: sbin/hiawatha: missing library: libmbedtls.so.17
ERROR: sbin/wigwam: missing library: libmbedx509.so.4
ERROR: sbin/wigwam: missing library: libmbedcrypto.so.11
ERROR: sbin/wigwam: missing library: libmbedtls.so.17
*** Error code 1
[...]

% objdump -x /var/obj/pkgsrc/hauke/hiawatha/work/.destdir/usr/pkg/sbin/hiawatha | grep PATH
  RPATH                /usr/pkg/lib
%

I set various cmake variables, as suggested by the interwebs, to no avail. Autohell was byzantine, but at least grep(1)able. Sigh...

Any idea?

Cheerio,
Hauke

--
     The ASCII Ribbon Campaign                    Hauke Fath
()     No HTML/RTF in email	        Institut für Nachrichtentechnik
/\     No Word docs in email                     TU Darmstadt
     Respect for open standards              Ruf +49-6151-16-21344


Home | Main Index | Thread Index | Old Index