David Golden did write:
On 12/31/06, David Landgren <[EMAIL PROTECTED]> wrote:
Hello List,

I recently took over maintenance of Crypt-SSLeay. Today I downloaded
Strawberry Perl to see whether it could build the module or not. Turns
out there are a couple of problems, and I need some advice.

Thanks for taking this on.  My compiler-fu is weak, but I'll answer
what I can.  (Scary that I'm the packager, isn't it!)

Thanks for the pronpt reply!

I assume I want MinGW. In the Makefile.PL, what is the orthodox way to
determine whether I'm running under Strawberry Perl from within a Perl
script (e.g. Makefile.PL)? I had a look through config_sh, but nothing
leaps out at me. The idea to be that under SP, I'll look for libraries
in c:\openssl\lib\mingw.

I think you want to use Config and check $Config{cc}.  For
Vanilla/Strawberry and other MinGW builds, that should be "gcc".

So,

    $^O eq 'Win32' and $Config{cc} eq 'gcc'

would be a suitable conditional?

Mainly because it has appears to attempt to link against the AS Perl
that is also installed on the machine. And in any event, I don't see the
ssleay32.a library referenced in the build of libraries.

What order are they in $ENV{PATH}?

Bingo! AS is listed before SP. I assume this would occur quite frequently out in the wild. What should I do?

Regards,
David


Reply via email to