develooper Front page | perl.perl5.porters | Postings from March 2007

RE: [PATCH] Compress::Raw::Zlib doesn't need ppport.h in core

Thread Previous | Thread Next
From:
Paul Marquess
Date:
March 20, 2007 13:50
Subject:
RE: [PATCH] Compress::Raw::Zlib doesn't need ppport.h in core
Message ID:
004401c76b31$40621dd0$6701a8c0@myopwv.com
From: Jerry D. Hedden [mailto:jdhedden@yahoo.com]
 
> The attached patch conditionalizes the inclusion of ppport.h in
> Compress/Raw/Zlib.xs so that it doesn't need ppport.h in core.

Hi Jerry

The patch certainly makes the inclusion of pport.h only happen when built
away from the core. Unfortunately I was already using the DEFINE option with
WriteMakefile.

This is the relevant part of Makefile.PL after your patch

WriteMakefile( 
    NAME         => 'Compress::Raw::Zlib',
    VERSION_FROM => 'lib/Compress/Raw/Zlib.pm',
    INC          => "-I$ZLIB_INCLUDE" ,
    DEFINE       => "$OLD_ZLIB $WALL -DGZIP_OS_CODE=$GZIP_OS_CODE" ,
    ...
    (
      $ENV{PERL_CORE}
        ? ()
        : ('DEFINE' => '-DUSE_PPPORT_H')
    ),
    ...

Can you rework your patch to fix this please?

Paul


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About