Am Donnerstag, 28. Dezember 2006 01:42 schrieb Giel van Schijndel:
> Dennis Schridde schreef:
> > Am Mittwoch, 27. Dezember 2006 23:22 schrieb Giel van Schijndel:
> >> 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.
> >
> > Swaping the if(windows) part with the generic one is not possible I
> > guess? Would remove the need for yet another if...
>
> No, the linker order is imperative here.
Is that because of the Windows libs?
A line like
-ljpeg -lpng -lz -lmad -lvorbisfile -lvorbis -logg -lphysfs -lSDLmain -lSDL 
-lSDL_net -lGLU -lGL -lopenal
works here (Linux/Makefile.raw)

On Windows it would look like
-ljpeg -lpng -lz -lmad -lvorbisfile -lvorbis -logg -lphysfs -lSDLmain -lSDL 
-lSDL_net -lmingw32 -lwsock32 -lwinmm -lglu32 -lopengl32 -lopenal32

That way the wsock and winmm stuff would still be linked before SDL...

--Dennis

Attachment: pgpEdb1k6zZLN.pgp
Description: PGP signature

_______________________________________________
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev

Reply via email to