From 0040c1b25af29307cce64612221b9fa5085153eb Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Fri, 23 Oct 2020 17:13:38 +0200 Subject: [PATCH] chore(build): make addon buildable as static library - 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. --- binding.gyp | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/binding.gyp b/binding.gyp index d27683ef..0098900d 100644 --- a/binding.gyp +++ b/binding.gyp @@ -2,6 +2,7 @@ 'targets': [ { 'target_name': 'kerberos', + 'type': 'loadable_module', 'include_dirs': [ '