-
Notifications
You must be signed in to change notification settings - Fork 27
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
Use pkg config #139
Use pkg config #139
Conversation
9ef16f5
to
8d0146e
Compare
d158d1e
to
57bb452
Compare
Support querying pkg-config for mbedtls directories. When building against mbedtls, use the following search criteria to locate the mbedtls dependency: 1. Env Variables 2. pkg-config 3. vendor directory This will allow binary packages from distributions to work without modification and not require a vendored mbedtls package. The problem with vendored packages is upsates, and since mbedtls is a critical cryptographic suite, it's important that the distributions can quickly update a single mbedtls package that everyone links to. Related to: - Mbed-TLS/mbedtls#8691 Signed-off-by: Bill Roberts <[email protected]>
This also fixes a possible header mismatch, as the interface feature was wanting an external mbedtls header file to build against, but would generate the bindings and compile the shim library against the local vendored mbedtls. On an ABI change, things would have been broken. To fix this, and not require the vendored package, use the externally supplied mbedtls found through the env var or pkg-config. Signed-off-by: Bill Roberts <[email protected]>
57bb452
to
7da41a6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Thanks!
@billatarm how to test the pkg-config feature locally? The CI doesn't do it right now so want to test it manually. |
Awaiting steps for testing locally
Yes, that is correct. You need to install mbedtls and have the pc files on PKG_CONFIG_PATH, your mileage will vary based your distro's specific defaults for pkg-config. If you install to a non default path, ie using pkg-config can tell you how your system is configured:
|
Thanks for the steps @billatarm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.