Closed GoogleCodeExporter closed 9 years ago
I think I remember having this problem for regular dlls too (the locale
ones?)... I vaguely recall forcing it always generate an implib somehow? I
guess that's gone in favour of the ResourceOnlyDLL setting but maybe the old
version could be excavated from history and repurposed.
Might need to look at comments along the way to decide if/why it was a bad idea
too. (I have no memory apparently)
Original comment by scottmg@chromium.org
on 19 Dec 2013 at 6:52
So! A mere... 13 months later I ran into the target above in trying to fix
https://code.google.com/p/chromium/issues/detail?id=451499 (as you have no
doubt seen).
There doesn't seem to be any flag to pass to link to tell it to suppress
generating an import lib (which we could have passed redundantly when we know
one will not be generated, and then had gyp/ninja look for that).
I also tried "/NOENTRY /ENTRY:_DllMainCRTStartup" with the thought that it
would trigger the "don't expect an import lib path" in ninja, but then
actually, we'd tell it to use that entry point. Sadly that doesn't work either
-- it seems that as soon as you have /ENTRY on the command line, the linker
doesn't include any of the CRT stub code so it can find the default entry point.
Lacking a hacky way (i.e. without changing gyp) I did your 2) above, and added
a custom flag that just means "don't expect the linker to generate a .lib file"
https://codereview.chromium.org/890773004/.
So, no hacky way. I guess I'll do 2) above
Original comment by scottmg@chromium.org
on 30 Jan 2015 at 7:09
(ignore that last bit, one paragraph written early and the other later :)
Original comment by scottmg@chromium.org
on 30 Jan 2015 at 7:10
This is workaround-able now.
Original comment by scottmg@chromium.org
on 2 Feb 2015 at 6:44
Original issue reported on code.google.com by
grt@chromium.org
on 19 Dec 2013 at 5:58