mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
fix for immediate exit in autobuilt EXE
(problem was the vc7 linker stripping out stuff that we needed) This was SVN commit r5149.
This commit is contained in:
parent
163e294eb7
commit
2405a98b58
1 changed files with 6 additions and 1 deletions
|
|
@ -477,6 +477,9 @@ function setup_main_exe ()
|
|||
-- required since main.cpp uses main instead of WinMain and subsystem=Win32
|
||||
"/ENTRY:mainCRTStartup",
|
||||
|
||||
-- see wstartup.h
|
||||
"/INCLUDE:_wstartup_InitAndRegisterShutdown",
|
||||
|
||||
-- delay loading of various Windows DLLs (not specific to any of the
|
||||
-- external libraries; those are handled separately)
|
||||
"/DELAYLOAD:oleaut32.dll",
|
||||
|
|
@ -836,10 +839,12 @@ function setup_tests()
|
|||
package_add_extern_libs(used_extern_libs)
|
||||
|
||||
if OS == "windows" then
|
||||
|
||||
-- from "lowlevel" static lib; must be added here to be linked in
|
||||
tinsert(package.files, source_root.."lib/sysdep/win/error_dialog.rc")
|
||||
|
||||
-- see wstartup.h
|
||||
tinsert(package.linkoptions, "/INCLUDE:_wstartup_InitAndRegisterShutdown")
|
||||
|
||||
elseif OS == "linux" then
|
||||
|
||||
tinsert(package.links, {
|
||||
|
|
|
|||
Loading…
Reference in a new issue