Re: [AD] SF.net SVN: alleg:[12842] allegro/branches/4.9

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 24 Jan 2010, at 21:04 , Trent Gamblin wrote:

> On Sun, January 24, 2010 4:13 pm, eglebbk@xxxxxxxxxx said:
>> Modified: allegro/branches/4.9/cmake/Common.cmake
>> ===================================================================
>> --- allegro/branches/4.9/cmake/Common.cmake	2010-01-24 22:22:04 UTC (rev 12841)
>> +++ allegro/branches/4.9/cmake/Common.cmake	2010-01-24 23:13:25 UTC (rev 12842)
>> @@ -113,6 +113,9 @@
>>     if(NOT BUILD_SHARED_LIBS)
>>         set_target_properties(${nm} PROPERTIES COMPILE_FLAGS "-DALLEGRO_STATICLINK")
>>     endif(NOT BUILD_SHARED_LIBS)
>> +   if(MINGW)
>> +       set_target_properties(${nm} PROPERTIES LINK_FLAGS "-Wl,-subsystem,windows")
>> +   endif(MINGW)
>> endfunction(add_our_executable)
> 
> I think this is incorrect. As far as I know there was some confusion over which way was the right
> way but currently with the latest gcc -mwindows is the only way to get what we want here.
> Could be wrong.

Well, -mwindows has been marked as deprecated in favour of "-l,-subsystem,windows" since before I stopped using Windows on a regular basis.
I don't have a Windows installation with which I can check anything though, so if it doesn't work anymore with the most recent version of MinGW, boo on them and feel free to change it to the old flag. ;)

Evert



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/