Skip to content

Add support for static linking of sqlx #99

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

Merged
merged 2 commits into from
Sep 4, 2020
Merged

Add support for static linking of sqlx #99

merged 2 commits into from
Sep 4, 2020

Conversation

emk
Copy link
Owner

@emk emk commented Sep 3, 2020

sqlx requires linking against OpenSSL twice:

  • sqlx-macros needs to link against OpenSSL as a shared libary for use
    at compile time.
  • sqlx needs to link against OpenSSL a static library for use at
    runtime.

You can find the details here:

launchbadge/sqlx#670
sfackler/rust-openssl#1337

We go with the fix proposed by @sfackler, and add a test program that we
can use to verify everything works correctly.

We remove a few OPENSSL-related variables that were added 4 years ago,
and that no longer appear to be needed.

emk added 2 commits September 3, 2020 16:24
`sqlx` requires linking against OpenSSL twice:

- `sqlx-macros` needs to link against OpenSSL as a shared libary for use
  at compile time.
- `sqlx` needs to link against OpenSSL a static library for use at
  runtime.

You can find the details here:

launchbadge/sqlx#670
sfackler/rust-openssl#1337

We go with the fix proposed by @sfackler, and add a test program that we
can use to verify everything works correctly.

We remove a few `OPENSSL`-related variables that were added 4 years ago,
and that no longer appear to be needed.
We also add a `CHANGELOG.md` file.
@emk emk merged commit 8b9a2d2 into master Sep 4, 2020
@emk emk deleted the sqlx branch September 4, 2020 12:48
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.

1 participant