Skip to content

Commit c44e0b7

Browse files
committed
Only set Z_SOLO when building zlib sources
#12
1 parent be0acc7 commit c44e0b7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile.PL

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ UpDowngrade(getPerlFiles('MANIFEST'))
7474
my $OPT_Z_PREFIX = '-DZ_PREFIX' ;
7575
my $OPT_ZLIB_INCLUDE = "-I$ZLIB_INCLUDE";
7676
my $OPT_ZLIB_LIB = "-L$ZLIB_LIB" ;
77+
my $OPT_SOLO = '-DZ_SOLO';
7778

7879
if (! $BUILD_ZLIB)
7980
{
@@ -85,13 +86,15 @@ if (! $BUILD_ZLIB)
8586

8687
$OPT_ZLIB_LIB = ''
8788
if $ZLIB_LIB eq './zlib-src' ;
89+
90+
$OPT_SOLO = '';
8891
}
8992

9093
WriteMakefile(
9194
NAME => 'Compress::Raw::Zlib',
9295
VERSION_FROM => 'lib/Compress/Raw/Zlib.pm',
9396
INC => $OPT_ZLIB_INCLUDE ,
94-
DEFINE => "-DNO_VIZ -DZ_SOLO $OLD_ZLIB $WALL $OPT_Z_PREFIX -DGZIP_OS_CODE=$GZIP_OS_CODE $USE_PPPORT_H -DPerl_crz_BUILD_ZLIB=$BUILD_ZLIB" ,
97+
DEFINE => "-DNO_VIZ $OPT_SOLO $OLD_ZLIB $WALL $OPT_Z_PREFIX -DGZIP_OS_CODE=$GZIP_OS_CODE $USE_PPPORT_H -DPerl_crz_BUILD_ZLIB=$BUILD_ZLIB" ,
9598
XS => { 'Zlib.xs' => 'Zlib.c'},
9699
'depend' => { 'Makefile' => 'config.in' },
97100
'clean' => { FILES => '*.c constants.h constants.xs' },

0 commit comments

Comments
 (0)