Exclude Compress/Raw/Bzip2 from ALL_STATIC extensions for MinGW for now
authorSteve Hay <steve.m.hay@googlemail.com>
Thu, 6 Jun 2013 22:43:33 +0000 (23:43 +0100)
committerSteve Hay <steve.m.hay@googlemail.com>
Thu, 6 Jun 2013 22:43:33 +0000 (23:43 +0100)
The ALL_STATIC=define build succeeds with VC++, but with MinGW it gives an
error about _BZ2_compressBlock (referenced from bzlib.o) being undefined.
I do not know why, so just exclude this extension from the list for now,
and add a note about it.

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