This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Exclude Compress/Raw/Bzip2 from ALL_STATIC extensions for MinGW for now
[perl5.git] / win32 / makefile.mk
index e78029d..f50c444 100644 (file)
@@ -877,7 +877,11 @@ SETARGV_OBJ        = setargv$(o)
 #  - Win32 extension contains overlapped symbols with win32.c (BUG!)
 #  - MakeMaker isn't capable enough for SDBM_File (smaller bug)
 #  - Encode (encoding search algorithm relies on shared library?)
+#  - GCC's linker gets undefined reference to _BZ2_compressBlock
 STATIC_EXT     = * !Win32 !SDBM_File !Encode
+.IF "$(CCTYPE)" == "GCC"
+STATIC_EXT     += !Compress/Raw/Bzip2
+.ENDIF
 .ELSE
 # specify static extensions here, for example:
 #STATIC_EXT    = Cwd Compress/Raw/Zlib