Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I've been playing with the Filter::Crypto::Decrypt module
but I'm not sure how I can statically link it to create a perl
5.8.8 linux binary.

I can use LINKTYPE=static to generate the Decrypt.a library
and copy this into an ext directory for perl. I then try
passing -Uusedl to the perl configure script to statically build
in that extension. Could someone please give me pointers?


Thank you! David

Replies are listed 'Best First'.
Re: Static Linking
by almut (Canon) on Mar 12, 2008 at 21:50 UTC
    I can use LINKTYPE=static ...

    Not much more required — just say make perl.  Optionally, if you want your created Perl binary to have a different name, you could add MAP_TARGET=cryptoperl to your Makefile.PL (and then say make cryptoperl).   (Update: this is documented here.)