Hi John,

In wxlua/apps/build/msw/makefile.vc and /modules/build/makefile.vc there 
are several lines similar to the following:

!if "$(RUNTIME_LIBS)" == "static"
__RUNTIME_LIBS_11 = $(__THREADING)
!endif

I changed each occurrence to :

!if "$(RUNTIME_LIBS)" == "static"
__RUNTIME_LIBS_11 = T
!endif

In wxLua\modules\build\msw I also had to change this line:
LUA_LIB_CFLAGS = /MD$(VAR_82) /DWIN32 $(VAR) $(VAR_79) $(VAR_81) \
to:
LUA_LIB_CFLAGS = /MT$(VAR_82) /DWIN32 $(VAR) $(VAR_79) $(VAR_81) \

This of course will break the dynamic build. A better approach would be 
to change the line to something like this:
LUA_LIB_CFLAGS = /M$(__RUNTIME_LIBS_165)$(VAR_82) /DWIN32 $(VAR) 
$(VAR_79) $(VAR_81) \

and add:
!if "$(RUNTIME_LIBS)" == "dynamic"
__RUNTIME_LIBS_165 = D
!endif
!if "$(RUNTIME_LIBS)" == "static"
__RUNTIME_LIBS_165 = T
!endif

I don't know how to modify the bakefiles to produce this automatically.

Les

John Labenski wrote:
> On Dec 7, 2007 4:46 PM, Leslie Newell <[EMAIL PROTECTED]> wrote:
>   
>> Found the problem. The /MD is hard coded for Lua. Manually changing the
>> makefile fixed the problem.
>>
>>     
>
> Good, is there anything that we can do to make this easier? What
> Makefile did you adjust in the end?
>
> Thanks,
>     John
>   


-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to