Skip to content

Fix compiling static lib on Windows with MSVC#1198

Open
sesmith177 wants to merge 2 commits intonghttp2:masterfrom
greenhouse-org:fix-static-lib-windows-vs
Open

Fix compiling static lib on Windows with MSVC#1198
sesmith177 wants to merge 2 commits intonghttp2:masterfrom
greenhouse-org:fix-static-lib-windows-vs

Conversation

@sesmith177
Copy link
Copy Markdown

On Windows, the DLL will create nghttp2.lib AND nghttp2.dll. Then the
static lib also tries to build nghttp2.lib, but that fails because it
already exists.

The nghttp2.lib created for the DLL cannot be used without the DLL. This
compiles the static nghttp2.lib into a separate directory, which works
around the above issue.

Signed-off-by: Matthew Horan mhoran@pivotal.io

On Windows, the DLL will create nghttp2.lib AND nghttp2.dll. Then the
static lib also tries to build nghttp2.lib, but that fails because it
already exists.

The nghttp2.lib created for the DLL cannot be used without the DLL. This
compiles the static nghttp2.lib into a separate directory, which works
around the above issue.

Signed-off-by: Matthew Horan <mhoran@pivotal.io>
@htuch
Copy link
Copy Markdown

htuch commented Dec 18, 2018

Friendly ping, we'd like to unblock Envoy Windows build support with this. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants