Closed monkburger closed 2 years ago
This is a slightly different way to fix https://github.com/pmqs/Compress-Raw-Zlib/issues/8 (Thanks to @toddr for the suggestion)
This enables -DZ_PREFIX, but prefixes external symbols with perlcrz instead of z_ (only when building w/ -DZ_PREFIX)
make test passes, and the symbols show the following, ie:
make test
57: 000000000000d780 275 FUNC GLOBAL DEFAULT 14 perl_crz_crc32_z 59: 0000000000017000 301 FUNC GLOBAL DEFAULT 14 perl_crz__tr_stored_block 60: 0000000000015530 70 FUNC GLOBAL DEFAULT 14 perl_crz_inflateUndermine 61: 0000000000012ee0 192 FUNC GLOBAL DEFAULT 14 perl_crz_inflateInit2_ 62: 000000000001bae0 512 OBJECT GLOBAL DEFAULT 16 perl_crz__dist_code 63: 0000000000012e10 198 FUNC GLOBAL DEFAULT 14 perl_crz_inflateReset2 64: 000000000000d0a0 1142 FUNC GLOBAL DEFAULT 14 perl_crz_adler32_z 65: 000000000001a320 69 OBJECT GLOBAL DEFAULT 16 perl_crz_deflate_copyrigh 67: 000000000000d8b0 90 FUNC GLOBAL DEFAULT 14 perl_crz_crc32_combine64 69: 000000000000f4f0 62 FUNC GLOBAL DEFAULT 14 perl_crz_deflateSetHeader 70: 000000000000f530 86 FUNC GLOBAL DEFAULT 14 perl_crz_deflatePending
This is a slightly different way to fix https://github.com/pmqs/Compress-Raw-Zlib/issues/8 (Thanks to @toddr for the suggestion)
This enables -DZ_PREFIX, but prefixes external symbols with perlcrz instead of z_ (only when building w/ -DZ_PREFIX)
make test
passes, and the symbols show the following, ie: