|
From: John L. <jla...@gm...> - 2007-12-10 04:59:14
|
On Dec 8, 2007 11:34 AM, Leslie Newell <les...@fm...> wrote:
> 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
You can use
$nmake.exe -f maklefile.vc THREADING=multi
> 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.
Neither do I. Hopefully Francesco reads this and has some free time as
he's pretty good with Bakefile.
Regards,
John
|