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

chore(build): make addon buildable as static library #119

Merged
merged 1 commit into from
Apr 6, 2021

Conversation

addaleax
Copy link
Contributor

Description

  • Require libcom_err when building a static library
    because the code accesses error_message() which
    comes from it
  • Use -l prefix for included libs for Windows

The goal here is to bundle this library as part of the mongosh
binary once we start enabling kerberos functionality in it.
I figured that opening a pull request early was a good idea so that
we might not need to wait for another kerberos release once we
start the actual work itself :)

- Require libcom_err when building a static library
  because the code accesses `error_message()` which
  comes from it
- Use `-l` prefix for included libs for Windows

The goal here is to bundle this library as part of the `mongosh`
binary itself.
@mbroadst
Copy link
Member

@addaleax LGTM, is there a Jira ticket for this?

@addaleax
Copy link
Contributor Author

addaleax commented Nov 16, 2020

@mbroadst No, not yet.

Edit: Opened https://jira.mongodb.org/browse/NODE-2956 for this.

@addaleax
Copy link
Contributor Author

addaleax commented Mar 3, 2021

@mbroadst Small ping? :)

Copy link
Member

@mbroadst mbroadst left a comment

Choose a reason for hiding this comment

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

LGTM, adding the Node team for review

Copy link
Collaborator

@nbbeeken nbbeeken left a comment

Choose a reason for hiding this comment

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

LGTM 🙂

Copy link
Member

@durran durran left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@emadum emadum left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@nbbeeken nbbeeken merged commit 786e7d8 into master Apr 6, 2021
@nbbeeken nbbeeken deleted the static-lib-libcom-err branch April 6, 2021 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants