# HG changeset patch # User Matti Hamalainen # Date 1508504157 -10800 # Node ID 7884848298bd76f1bcf9e7461bb9ec9440d0dc15 # Parent bb9c78c70b1b3a38321ae35f14f7e3c8a6d931a3 Fix MinGW cross compilation. diff -r bb9c78c70b1b -r 7884848298bd Makefile.w32 --- a/Makefile.w32 Fri Oct 20 15:23:17 2017 +0300 +++ b/Makefile.w32 Fri Oct 20 15:55:57 2017 +0300 @@ -1,7 +1,7 @@ # # For win32 version cross-compilation with MiNGW suite @ Linux # -MINGW_PREFIX=i686-w64-mingw32- +BINTOOL_PREFIX=i686-w64-mingw32- PREFIX = ./win32/ BINPATH = ./win32/ @@ -10,15 +10,13 @@ INSTALL = # C-compiler, etc -CC=$(MINGW_PREFIX)gcc -AR=$(MINGW_PREFIX)ar -RANLIB=$(MINGW_PREFIX)ranlib -WINDRES=$(MINGW_PREFIX)windres +RANLIB=$(BINTOOL_PREFIX)ranlib +WINDRES=$(BINTOOL_PREFIX)windres CFLAGS += -DHAVE_STRING_H -DHAVE_STDINT_H LDFLAGS += LIBPNG_CFLAGS += -DHAVE_LIBPNG -LIBPNG_LDFLAGS += -lpng +LIBPNG_LDFLAGS += -lpng -lz include Makefile.gen