SPUG: perl built with static or dynamic loading

Darren Stalder darren at u.washington.edu
Tue Feb 29 19:40:51 CST 2000

Mark Mertel, in an immanent manifestation of deity, wrote:
>is there an easy command-line option to determine hether perl has been built
>with static or dynamic loading ?

Something that I would expect would work:
$ perl -MDynaLoader -e 1

If DynaLoader isn't available as a module, then Perl is statically

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.

<torin at daft.com> <http://www.daft.com/~torin> <torin at debian.org> <torin at io.com>
Darren Stalder/2608 Second Ave, @282/Seattle, WA 98121-1212/USA/+1-800-921-4996
@ Sysadmin, webweaver, postmaster for hire. C/Perl/CGI/Pilot programmer/tutor @
@		     Make a little hot-tub in your soul.		      @

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    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