Hello,
When building with mingw32 (and without msys) using a command such as
the following:
mingw32-make -f win\Makefile.mingw USE_WINDOWS=1
The build fails when it tries to build zlib:
make -C src/../compat/zlib PREFIX= -f win32/Makefile.gcc libz.a
process_begin: CreateProcess(NULL, make -C src/../compat/zlib
PREFIX= -f win32/Makefile.gcc libz.a, ...) failed.
make (e=2): The system cannot find the file specified.
win\Makefile.mingw:662: recipe for target 'zlib' failed
mingw32-make: *** [zlib] Error 2
The fix is to call make as "$(make)" instead of "make". The attached
patch makes this change to makemake.tcl.
Edward Berner
Index: src/makemake.tcl
==================================================================
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -694,11 +694,11 @@
ifdef FOSSIL_ENABLE_TCL
EXTRAOBJ += $(OBJDIR)/th_tcl.o
endif
zlib:
- make -C $(ZLIBDIR) PREFIX=$(PREFIX) -f win32/Makefile.gcc libz.a
+ $(MAKE) -C $(ZLIBDIR) PREFIX=$(PREFIX) -f win32/Makefile.gcc libz.a
$(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o zlib
$(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o
# This rule prevents make from using its default rules to try build
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users