Skip to content

PHPC-1497: Introduce new configure switch to use system libraries #1085

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 1 commit into from
Jan 23, 2020

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Jan 22, 2020

https://jira.mongodb.org/browse/PHPC-1497

The new --with-system-libs configure switch replaces --with-libmongoc and --with-libbson, since they both needed to have the same value. Passing --with-system-libs=yes will always compile against system libraries, regardless of the --with-libmongoc and --with-libbson options. When one of these two options is used, a message is printed alerting the user that the settings are deprecated and they should use --with-system-libs instead.

Since neither libmongoc nor libbson option took a path where to find the libraries, it is better to use this compound switch. However, if downstream packages need to supply custom paths for libbson or libmongoc, we may opt to keep the individual options instead. Ping @remicollet and @oerdnj for feedback on this.

@alcaeus alcaeus requested a review from jmikola January 22, 2020 10:28
@alcaeus alcaeus self-assigned this Jan 22, 2020
@remicollet
Copy link
Contributor

remicollet commented Jan 22, 2020

if downstream packages need to supply custom paths for libbson or libmongoc,

a custom path is easily managed by setting PKG_CONFIG_PATH

LGTM

@oerdnj
Copy link

oerdnj commented Jan 22, 2020

lgtm too

@alcaeus
Copy link
Member Author

alcaeus commented Jan 22, 2020

Thank you for the quick feedback! ❤️

Copy link
Member

@jmikola jmikola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I left a note on PHPC-1497 to update the docs.

alcaeus added a commit that referenced this pull request Jan 23, 2020
@alcaeus alcaeus merged commit d8d30e5 into mongodb:master Jan 23, 2020
@alcaeus alcaeus deleted the phpc-1497 branch January 23, 2020 07:35
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.

4 participants