SPUG: perl built with static or dynamic loading
Charles DeRykus
ced at carios2.ca.boeing.com
Tue Feb 29 21:14:37 CST 2000
> Something that I would expect would work:
> $ perl -MDynaLoader -e 1
> If DynaLoader isn't available as a module, then Perl is statically
> bound.
> Something else that might work but might give you false positives on the
> dynamic side:
> $ perl -V:d_dlopen
> This will tell you (under Unix and friends at least) if it is possible
> to dynamically load a shared object. This would generally mean that
> Perl has been built dynamically, but it wouldn't be required; it would
> just be weird not to.
Wouldn't this be definitive... ? (I'm presuming perl
will undef usedl if test loading fails)
perl -MConfig -e 'print $Config{usedl} ? "yes\n" : "no\n"'
--
Charles DeRykus
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
SUBSCRIBE/UNSUBSCRIBE: Replace ACTION below by subscribe or unsubscribe
Email to majordomo at pm.org: ACTION spug-list your_address
More information about the spug-list
mailing list