couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Candler (JIRA)" <>
Subject [jira] Commented: (COUCHDB-562) link couchjs with bound libmozjs
Date Mon, 09 Nov 2009 10:32:32 GMT


Brian Candler commented on COUCHDB-562:

I belive that setting rpath is done using LD_RUN_PATH at compile time.

The following works for me:

$ ./bootstrap
$ LD_RUN_PATH=/usr/lib/xulrunner- ./configure --with-js-lib=/usr/lib/xulrunner-
$ LD_RUN_PATH=/usr/lib/xulrunner- make && sudo make install

You can confirm that the binary has the library location coded into it:

$ ldd /usr/local/lib/couchdb/bin/couchjs | grep moz => /usr/lib/xulrunner- (0x0031e000)

So the solution might be just to include the above in the documentation. It would be nice
if ./configure could carry the LD_RUN_PATH setting forward. And/or, it could append the --with-js-lib
value onto any existing LD_RUN_PATH.

> link couchjs with bound libmozjs
> --------------------------------
>                 Key: COUCHDB-562
>                 URL:
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Build System
>         Environment: linux, ubuntu,debian
>            Reporter: Meno Abels
>             Fix For: 0.10
> If you build the couchdb from the source with a prefix set and --with-js-[lib|include]
option the resulting couchjs programm in <prefix>/lib/couchdb/bin/couchjs does not know
where to find the specified which was specified in with-js-lib. This causes that
quite all test will fail. 
> To fix this the rpath has to setup during the compile. I don't had a look where to do
> but a small shell wrapper fix it also
> #!/bin/sh
> LD_LIBRARY_PATH=...  exec $0.orig $@

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message