> What I am seeking to do is build gsr and link it into $PATH without
> installing anything anywhere else.
It would be possible to do this -- but I'm not sure the resultant binary would do you any good.
Reviewing quickly your post, what was installed was
- SpiderMonkey
- libgpsee.so
- gsr
- gpsee.pc (package config info)
- Modules that ship with GPSEE
Without SpiderMonkey we have no JavaScript, without libgpsee we have no GPSEE, without modules we can't require() anything that is not pure JS (so, no fs-base, no binary/b, no system.stdout, etc).
You could remove gpsee.pc from the build, but then any other programs (besides GSR) needing to use GPSEE would not be able to. It's only a couple hundred bytes anyhow.
I'm thinking that the gpsee_precompiler should be in your list, I'm not sure why I didn't see it in there. You could eliminate that, but anybody building programs out of GSR is likely to miss it: ideally, gpsee_precompiler is used in the 3rd party apps "install phase" to compile JS->Bytecode. Without this, it means that users executing scripts have to have permission to write to the scripts' directory in order to take advantage of pre-compiled bytecode, which would be a security problem in many types of installation.
Was there anything in particular you wanted to eliminate that I didn't address?
Wes
--
Wesley W. Garland
Director, Product Development
PageMail, Inc.
+1 613 542 2787 x 102