From a6c3746408c2badd5e2cc1a5be0adae06317533c Mon Sep 17 00:00:00 2001 From: Steve Hay Date: Thu, 6 Jun 2013 23:43:33 +0100 Subject: [PATCH 1/1] Exclude Compress/Raw/Bzip2 from ALL_STATIC extensions for MinGW for now 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/win32/makefile.mk b/win32/makefile.mk index e78029d..f50c444 100644 --- a/win32/makefile.mk +++ b/win32/makefile.mk @@ -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 -- 1.8.3.1