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.

You could put the unconditional LDFLAGS in something like GLOBAL_LDFLAGS
and then refer to $(GLOBAL_LDFLAGS) within the first if(windows) section.
That choice I will however leave up to you (hehe  :-P )

--
Giel

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to