diff --git a/source/workspaces/premake/premake.lua b/source/workspaces/premake/premake.lua index 793e3cab99..2c31f34317 100755 --- a/source/workspaces/premake/premake.lua +++ b/source/workspaces/premake/premake.lua @@ -69,7 +69,8 @@ if (OS == "windows") then package.links = { "opengl32" } -- package.defines = { "XERCES_STATIC_LIB" } tinsert(package.files, sourcesfromdirs("../../lib/sysdep/win")) - package.linkoptions = { "/ENTRY:entry", "/DELAYLOAD:opengl32.dll", + package.linkoptions = { "/ENTRY:entry", +"/DELAYLOAD:opengl32.dll", "/DELAYLOAD:advapi32.dll", "/DELAYLOAD:gdi32.dll", "/DELAYLOAD:user32.dll", @@ -80,7 +81,9 @@ if (OS == "windows") then "/DELAYLOAD:libpng10.dll", "/DELAYLOAD:zlib1.dll", "/DELAYLOAD:js32.dll", -"/DELAYLOAD:glu32.dll" } +"/DELAYLOAD:glu32.dll", +"/DELAY:UNLOAD" -- allow manual unload of delay-loaded DLLs +} package.linkflags = { "static-runtime" } package.buildflags = { "no-main" } package.pchHeader = "precompiled.h"