<div dir="ltr">Ok, this may or may not work but I figured it was worth a try.<div><br></div><div>I'm running out of motivation to get a good method to determine which DLL's I need to package with the install(SCRIPT...) / GetPrerequisites mess.</div><div><br></div><div>My current approach is to attempt to use try_compile to build a minimal program I can link against and use GetPrerequisites with it.</div><div><br></div><div> I crated an minimal do nothing c++ program and used the full linker flags for the main program but it appears that the "-Wl,--no-whole-archive" is "helping" me by not linking with things I don't need:</div><div><br></div><div><div>$ objdump -x getdeps.exe | grep "DLL Name:"</div><div>        DLL Name: KERNEL32.dll</div><div>        DLL Name: msvcrt.dll</div></div><div><br></div><div>Any ideas?</div><div><br></div><div>Thanks,</div><div>Richard</div></div>