Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vcpkg, libpq] separate static and shared library installations #13491

Merged
merged 2 commits into from
Sep 24, 2020

Conversation

lebdron
Copy link
Contributor

@lebdron lebdron commented Sep 11, 2020

Currently, libpq installation uses a top-level install target on non-Windows platforms. This results in having shared libraries installed even when all other libraries are static. Because CMake prefers shared libraries over static, builds result in shared library being linked, which does not correspond to triplet and other packages installations. Moreover, it causes packaging issues, since shared libraries have to be installed together with the binary.

This PR fixes the behavior by installing only libpq.a for the usual x64-linux triplet.

@lebdron lebdron marked this pull request as draft September 12, 2020 09:31
Signed-off-by: Andrei Lebedev <lebdron@gmail.com>
@lebdron lebdron marked this pull request as ready for review September 15, 2020 13:03
Signed-off-by: Andrei Lebedev <lebdron@gmail.com>
@LilyWangL LilyWangL added category:port-bug The issue is with a library, which is something the port should already support requires:all-feature-testing vcpkg install port[all features supported by that port] needs to be demonstrated to function info:reviewed Pull Request changes follow basic guidelines and removed requires:all-feature-testing vcpkg install port[all features supported by that port] needs to be demonstrated to function labels Sep 16, 2020
@ras0219-msft
Copy link
Contributor

LGTM, thanks for the fix!

@ras0219-msft ras0219-msft merged commit 8d4fd6d into microsoft:master Sep 24, 2020
@lebdron lebdron deleted the libpq-static-shared branch September 24, 2020 19:40
@Neumann-A
Copy link
Contributor

This PR removed a lot of additional static libraries from libpq and is the reason that PR #13464 is now failing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants