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.


diff --git a/Makefile.in b/Makefile.in
--- a/Makefile.in
+++ b/Makefile.in
@@ -8,7 +8,7 @@
 #-I/$(HOME)/local/include/js/
 CFLAGS= -Wall -fPIC -DXP_UNIX $(INCLUDE) $(CONFIGURE_CFLAGS)
 COMMON=dehydra.o util.o dehydra_types.o
-LDFLAGS=  -lm $(SM_LIBDIR)/lib$(SM_NAME)$(SM_SUFFIX) $
(SHARED_LINK_FLAGS)
+LDFLAGS=  -lm -L$(SM_LIBDIR) -l$(SM_NAME)  $(SHARED_LINK_FLAGS)
 DEHYDRA_OBJS = dehydra_ast.o $(COMMON)
 TREEHYDRA_OBJS= treehydra.o treehydra_builtins.o treehydra_plugin.o
treehydra_generated.o $(DEHYDRA_OBJS)
 DEPDIR = .deps


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

Reply via email to