Subject: | build does not succeed using gmake |
We recently switched our build on Windows from nmake to gmake. The Makefile generated for Win32-API failed to build with the following error:
LINK : fatal error LNK1181: cannot open input file 'call_asm_x64_msvc.obj'
gmake[4]: *** [blib\arch\auto\Win32\API\API.dll] Error 1181
The obj file wasn't generated because '.asm' was not on the .SUFFIXES list. 'nmake' has it on the SUFFIXES list by default, but 'gmake' doesn't (at least our build of gmake).
By mangling the Makefile to include '.asm' on the'.SUFFIXES' list, the the build completed successfully using gmake.
$(PERL) -pi.orig -e "s/^\.SUFFIXES : /\.SUFFIXES : .asm /m" Win32-API/Makefile