----- Original Message -----
Hi Dave,
Is there any existed method for merging extension lib with crash into one binary?
Although library is flexible, people don't like to handy load
multi-libs, especially for those not crash experts...
No, not really. You could take any extension module and build it
into the crash binary by adding it to the Makefile's CFILES and
OBJECT_FILES lists, and adding a stanza to compile it. But you
would have to copy the help page data manually to help.c, and perhaps
tinker with the extension module source file if necessary if there are
any namespace collisions.
If you don't want to hand-load extension modules, install them
in one of the appropriate locations, and then use "crash -x ..."
to load them all automatically during initialization.
$ crash --help
...
-x
Automatically load extension modules from a particular directory.
The directory is determined by the following order of precedence:
(1) the directory specified in the CRASH_EXTENSIONS shell
environment variable
(2) /usr/lib64/crash/extensions (64-bit architectures)
(3) /usr/lib/crash/extensions (32-bit architectures)
(4) the ./extensions subdirectory of the current directory
...
Dave