byang wrote:
> Hi ,
> 
>   The now dehydra code link the spidermonkey shared library directly,
> I mean ,  it just record where the library is, and try to load in a
> fixed location. And this make the result dehydra only workable on a
> system where the spidermonkey library should be the same location.
>   So, I suggest the following change and this will make the Dehydra
> movable and then I can package it with a cross-compiler toolchain.

The problem with your patch is that we typically use a spidermonkey lib that 
is not in the default search path: e.g. not /usr/lib/libjs.so but 
/builds/mozilla-central/js/src/libjs.so

So it wouldn't be enough to use -ljs... you would either have to link 
against the absolute path as we have done, use -rpath to record the special 
search path, or set LD_LIBRARY_PATH in the environment to specify the search 
directory.

And of course, things are different on mac, where the path is recorded in 
the dylib. In that case you probably want to record the special search 
location in the dylib.

--BDS
_______________________________________________
Dev-static-analysis mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-static-analysis

Reply via email to