Skip to content

Commit

Permalink
Work around pmqs#8 by enabling DPREFIX, which prefixes
Browse files Browse the repository at this point in the history
all libz (zlib-src/) symbols with z_, which should fix any symbol conflicts.

XXX: It might be worthwhile to change the z_ prefix to something unique to C::R::Zlib, ie: crz_.
  • Loading branch information
Gary Stanley committed May 3, 2022
1 parent 9f3850f commit 5985253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ WriteMakefile(
NAME => 'Compress::Raw::Zlib',
VERSION_FROM => 'lib/Compress/Raw/Zlib.pm',
INC => "-I$ZLIB_INCLUDE" ,
DEFINE => "-DNO_VIZ -DZ_SOLO $OLD_ZLIB $WALL -DGZIP_OS_CODE=$GZIP_OS_CODE $USE_PPPORT_H" ,
DEFINE => "-DNO_VIZ -DZ_SOLO $OLD_ZLIB $WALL -DZ_PREFIX -DGZIP_OS_CODE=$GZIP_OS_CODE $USE_PPPORT_H" ,
XS => { 'Zlib.xs' => 'Zlib.c'},
'depend' => { 'Makefile' => 'config.in' },
'clean' => { FILES => '*.c constants.h constants.xs' },
Expand Down

0 comments on commit 5985253

Please sign in to comment.