Dennis Schridde schreef: > Author: devurandom > Date: Wed Dec 27 22:44:46 2006 > New Revision: 577 > > URL: http://svn.gna.org/viewcvs/warzone?rev=577&view=rev > Log: > NSIS support for automake. > raw Makefiles might be broken, please report back! Reporting back:
Yes, the raw makefiles are broken now. Compiling is still possible, linking not anymore however. You removed -lmingw32 from the linker list, while this library is *always* required for the linking of stand-alone executables (i.e. no DLLs etc.) using MinGW. Furthermore -lSDL_net depends on -lwsock32 so -lwsock32 needs to be provided _later_ on the command line than -lSDL_net. The same seems to be the case with -lSDL and -lwinmm. The attached patch fixes these issues. -- Giel
Index: makerules/configure.mk =================================================================== --- makerules/configure.mk (revision 577) +++ makerules/configure.mk (working copy) @@ -74,7 +74,7 @@ EXEEXT=.exe WINDRES=windres CFLAGS+=-mwindows -DWIN32 -LDFLAGS+=-lwsock32 -lwinmm -lglu32 -lopengl32 -lopenal32 +LDFLAGS+=-lmingw32 -lglu32 -lopengl32 -lopenal32 else DIRSEP=/ RMF=rm -f @@ -85,4 +85,8 @@ LDFLAGS+=-ljpeg -lpng -lz -lmad -lvorbisfile -lvorbis -logg -lphysfs -lSDLmain -lSDL -lSDL_net +ifeq ($(strip $(PLATFORM)),windows) +LDFLAGS+=-lwsock32 -lwinmm +endif + include $(MAKERULES)/common.mk
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Warzone-dev mailing list Warzone-dev@gna.org https://mail.gna.org/listinfo/warzone-dev