<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:14:06 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CDRIVER-2083] Distribute CMake config packages for statically linking to libbson and libmongoc</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2083</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description></description>
                <environment></environment>
        <key id="363019">CDRIVER-2083</key>
            <summary>Distribute CMake config packages for statically linking to libbson and libmongoc</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="bjori">Hannes Magnusson</assignee>
                                    <reporter username="jesse@mongodb.com">A. Jesse Jiryu Davis</reporter>
                        <labels>
                    </labels>
                <created>Thu, 9 Mar 2017 20:17:32 +0000</created>
                <updated>Thu, 15 Jun 2017 00:29:10 +0000</updated>
                            <resolved>Mon, 12 Jun 2017 19:53:52 +0000</resolved>
                                                    <fixVersion>1.7.0</fixVersion>
                                    <component>Build</component>
                    <component>cmake</component>
                    <component>libbson</component>
                    <component>libmongoc</component>
                                        <votes>1</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="1597481" author="xgen-internal-githook" created="Thu, 15 Jun 2017 00:29:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;bjori&apos;, u&apos;name&apos;: u&apos;Hannes Magnusson&apos;, u&apos;email&apos;: u&apos;bjori@php.net&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; Fix windows build&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/206fcfb774154b24657c379b9f2af7704479500b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/206fcfb774154b24657c379b9f2af7704479500b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1594806" author="bjori" created="Mon, 12 Jun 2017 19:53:52 +0000"  >&lt;p&gt;We consider this ticket to be fixed now.&lt;/p&gt;

&lt;p&gt;The Cmake system is experimental and not intended for production use for platforms other then Windows.&lt;/p&gt;

&lt;p&gt;That being said, we do distribute now&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;libmongoc-1.0-config-version.cmake&lt;/li&gt;
	&lt;li&gt;libmongoc-1.0-config.cmake&lt;/li&gt;
	&lt;li&gt;libmongoc-1.0-static-config-version.cmake&lt;/li&gt;
	&lt;li&gt;libmongoc-1.0-static-config.cmake&lt;/li&gt;
	&lt;li&gt;libbson-1.0-config-version.cmake&lt;/li&gt;
	&lt;li&gt;libbson-1.0-config.cmake&lt;/li&gt;
	&lt;li&gt;libbson-1.0-static-config-version.cmake&lt;/li&gt;
	&lt;li&gt;libbson-1.0-static-config.cmake&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;These can be used in native CMake projects via find_package ().&lt;br/&gt;
This support is experimental.&lt;/p&gt;

&lt;p&gt;Using the PkgConfig module, even with CMake builds, remains our production recommendation, also on Windows.&lt;/p&gt;


&lt;p&gt;The mongoc CMakeLists.txt still needs work to get up to par with the autotools build system.&lt;br/&gt;
The libbson one probably too. This will be addressed hopefully in future versions, see &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2145&quot; title=&quot;Support nearly all the same options in CMake as with the Autotools&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2145&quot;&gt;&lt;del&gt;CDRIVER-2145&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1594686" author="xgen-internal-githook" created="Mon, 12 Jun 2017 18:26:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;bjori&apos;, u&apos;name&apos;: u&apos;Hannes Magnusson&apos;, u&apos;email&apos;: u&apos;bjori@php.net&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; Use consistent path for the artifacts&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/6ffc637e9225e6080cd5a44e9e7e2afe4b6a5ab8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/6ffc637e9225e6080cd5a44e9e7e2afe4b6a5ab8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1594684" author="xgen-internal-githook" created="Mon, 12 Jun 2017 18:26:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;bjori&apos;, u&apos;name&apos;: u&apos;Hannes Magnusson&apos;, u&apos;email&apos;: u&apos;bjori@php.net&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; Raise a warning when using CMake on non-Windows platform&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/6040421156526930a8d4adc9acd222696454137c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/6040421156526930a8d4adc9acd222696454137c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1594669" author="xgen-internal-githook" created="Mon, 12 Jun 2017 18:15:47 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;bjori&apos;, &apos;name&apos;: &apos;Hannes Magnusson&apos;, &apos;email&apos;: &apos;bjori@php.net&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; Fix hardcoded dependencies&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/7bb7b5759450230ea85b5b3fe2134b5259438050&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/7bb7b5759450230ea85b5b3fe2134b5259438050&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1594666" author="xgen-internal-githook" created="Mon, 12 Jun 2017 18:15:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;bjori&apos;, &apos;name&apos;: &apos;Hannes Magnusson&apos;, &apos;email&apos;: &apos;bjori@php.net&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; Raise a warning when using CMake on non-Windows platform&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/c56da2b27e6a630500f19ea440906d1615d3edbc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/c56da2b27e6a630500f19ea440906d1615d3edbc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1560082" author="rassi@10gen.com" created="Fri, 28 Apr 2017 10:43:14 +0000"  >&lt;p&gt;One more issue: as of current libbson master, I get the following error when statically linking the bsoncxx tests against libbson on the rhel55-test builders (but not the other C++ driver Evergreen builders):&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; [2017/04/28 03:03:00.632] /data/mci/ea27da35ca110e44b168a5444e84c702/mongoc/lib/libbson-static-1.0.a(libbson_la-bson-clock.o): In function `bson_get_monotonic_time&apos;:&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; [2017/04/28 03:03:00.632] /data/mci/ea27da35ca110e44b168a5444e84c702/mongo-cxx-driver/mongo-c-driver-1.7.0-dev/src/libbson/src/bson/bson-clock.c:124: undefined reference to `clock_gettime&apos;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; [2017/04/28 03:03:00.632] collect2: error: ld returned 1 exit status&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; [2017/04/28 03:03:00.632] make[2]: *** [src/bsoncxx/test/test_bson] Error 1&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;It seems like explicitly adding -lrt to BSON_STATIC_LIBRARIES is required on certain platforms, when clock_gettime() is available and being used.&lt;/p&gt;</comment>
                            <comment id="1559910" author="xgen-internal-githook" created="Fri, 28 Apr 2017 03:45:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;xdg&apos;, u&apos;name&apos;: u&apos;David Golden&apos;, u&apos;email&apos;: u&apos;xdg@xdg.me&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; Split absolute paths used in .pc files&lt;/p&gt;

&lt;p&gt;When generating .pc files from CMake, we don&apos;t want to put absolute&lt;br/&gt;
library paths in the .pc files (which is how CMake prefers them) because&lt;br/&gt;
pkg-config will re-order items without &apos;-l&apos; options.&lt;/p&gt;

&lt;p&gt;This commit splits absolute paths back into separate -L and -l&lt;br/&gt;
components.  E.g. `/opt/foo/lib/libbar.a` becomes `-L/opt/foo/lib` and&lt;br/&gt;
`-lbar`.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/04707295cc89d0d9b875da991743a8f8e07cc42e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/04707295cc89d0d9b875da991743a8f8e07cc42e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1559909" author="xgen-internal-githook" created="Fri, 28 Apr 2017 03:45:05 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;xdg&apos;, u&apos;name&apos;: u&apos;David Golden&apos;, u&apos;email&apos;: u&apos;xdg@xdg.me&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; Fix CMake conditions for WIN32 not MSVC&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/4327e32116a5bb9675ed9a812dc9765276f6d6ac&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/4327e32116a5bb9675ed9a812dc9765276f6d6ac&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1559886" author="xgen-internal-githook" created="Fri, 28 Apr 2017 02:37:16 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;David Golden&apos;, &apos;email&apos;: &apos;xdg@xdg.me&apos;, &apos;username&apos;: &apos;xdg&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; Fix Windows/Unix CMake conditionals&lt;/p&gt;

&lt;p&gt;Fixes two cases that were conditional on MSVC and shouldn&apos;t have been:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Uses WIN32 for requiring ws2_32 or not&lt;/li&gt;
	&lt;li&gt;Uses UNIX for configuring Threads or not&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The latter fix just moves `find_package(Threads)` next to commands&lt;br/&gt;
in a later &quot;if UNIX&quot; stanza that uses CMAKE_THREADS_LIBS_INIT.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/f01e0fe9bfdbc62fe5c87e01a2c9935a26bd2b31&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/f01e0fe9bfdbc62fe5c87e01a2c9935a26bd2b31&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1559885" author="xgen-internal-githook" created="Fri, 28 Apr 2017 02:37:15 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;David Golden&apos;, &apos;email&apos;: &apos;xdg@xdg.me&apos;, &apos;username&apos;: &apos;xdg&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; use WIN32 not MSVC conditional in .cmake&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/fd190bc0598cb45eeccd6e7801ba526dd7294c5e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/fd190bc0598cb45eeccd6e7801ba526dd7294c5e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1559393" author="xgen-internal-githook" created="Thu, 27 Apr 2017 16:54:21 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;xdg&apos;, u&apos;name&apos;: u&apos;David Golden&apos;, u&apos;email&apos;: u&apos;xdg@xdg.me&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; Add MONGOC_STATIC to static .pc file&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/20b08ec5711ceb555c57b90bcb4351373ea4d9ab&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/20b08ec5711ceb555c57b90bcb4351373ea4d9ab&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1558190" author="jesse" created="Wed, 26 Apr 2017 14:13:53 +0000"  >&lt;p&gt;I don&apos;t mind leaving the &lt;tt&gt;message&lt;/tt&gt; calls, or a subset of them, in the documentation. They may actually be informative to readers, and encourage them to use diagnostic messages in their own CMakeLists when they&apos;re trying to link to libbson or libmongoc.&lt;/p&gt;</comment>
                            <comment id="1558046" author="david.golden" created="Wed, 26 Apr 2017 10:26:31 +0000"  >&lt;p&gt;I&apos;ve taken this ticket, as there&apos;s some additional cleanup work to do once we see how the updated code smokes in the CI system:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Rationalize PUBLIC/PRIVATE/INTERFACE usage in CMakeList.txt for use with test and example targets&lt;/li&gt;
	&lt;li&gt;Possibly convert examples in CMakeList.txt to use libmongoc as a standalone program would instead of building using the already defined mongoc modules&lt;/li&gt;
	&lt;li&gt;Remove diagnostic debugging &lt;tt&gt;message&lt;/tt&gt; calls from examples/cmake/* code so it doesn&apos;t appear in generated documentation&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="1558029" author="xgen-internal-githook" created="Wed, 26 Apr 2017 10:19:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;xdg&apos;, u&apos;name&apos;: u&apos;David Golden&apos;, u&apos;email&apos;: u&apos;xdg@xdg.me&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; Update .cmake variable naming scheme&lt;/p&gt;

&lt;p&gt;This commit updates the libbson submodule commit point.&lt;/p&gt;

&lt;p&gt;libbson already publishes two .cmake files, one for shared builds and one&lt;br/&gt;
for static builds.  The updated libbson commit publishes variables under&lt;br/&gt;
separate namespaces, BSON_* and BSON_STATIC_*.&lt;/p&gt;

&lt;p&gt;This commit uses those .cmake files directly instead of our own FindBSON&lt;br/&gt;
config file and uses the new variable names where appropriate.&lt;/p&gt;

&lt;p&gt;This commit also changes the generated .cmake files for libmongoc to&lt;br/&gt;
follow the same MONGOC_* and MONGOC_STATIC_* naming convention for&lt;br/&gt;
downstream users.&lt;/p&gt;

&lt;p&gt;mongocxx (and maybe the PHP driver) will need a corresponding update.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/5bb1e4b61de99a432cd39111c841c29ac0cc621d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/5bb1e4b61de99a432cd39111c841c29ac0cc621d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1558024" author="xgen-internal-githook" created="Wed, 26 Apr 2017 09:51:30 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;David Golden&apos;, &apos;username&apos;: &apos;xdg&apos;, &apos;email&apos;: &apos;xdg@xdg.me&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; Revise .cmake variable names for consistency&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/399288e272c66afbada2a0647e33a381bd1030d0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/399288e272c66afbada2a0647e33a381bd1030d0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1555022" author="xgen-internal-githook" created="Fri, 21 Apr 2017 18:16:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; fix semicolons in pkg-config files&lt;/p&gt;

&lt;p&gt;Same as the CMake fix, now with Autools.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/724074e581241634feb1ad563db1a66b25cd630e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/724074e581241634feb1ad563db1a66b25cd630e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1555021" author="xgen-internal-githook" created="Fri, 21 Apr 2017 18:16:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; fix linking test&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/7cce898003aa6d5065eda00a40c4ed3a2c52a823&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/7cce898003aa6d5065eda00a40c4ed3a2c52a823&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1554889" author="xgen-internal-githook" created="Fri, 21 Apr 2017 16:48:38 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;David Golden&apos;, &apos;username&apos;: &apos;xdg&apos;, &apos;email&apos;: &apos;xdg@xdg.me&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; use absolute lib paths in CMake config files&lt;/p&gt;

&lt;p&gt;This commit changes .cmake files to return libraries with absolute paths,&lt;br/&gt;
which removes the need for CMake end-users to set `link_directories`.&lt;/p&gt;

&lt;p&gt;See &lt;a href=&quot;https://cmake.org/cmake/help/v3.0/command/link_directories.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://cmake.org/cmake/help/v3.0/command/link_directories.html&lt;/a&gt;&lt;br/&gt;
for additional context.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/a1131cccedb2e0f4447194886febdfa025aa03f5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/a1131cccedb2e0f4447194886febdfa025aa03f5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1554888" author="xgen-internal-githook" created="Fri, 21 Apr 2017 16:48:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;David Golden&apos;, &apos;username&apos;: &apos;xdg&apos;, &apos;email&apos;: &apos;xdg@xdg.me&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; add target_compile_definitions to shared library example&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/bc655d8b1fc93cc947f82a19ad50f5c8a57ae079&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/bc655d8b1fc93cc947f82a19ad50f5c8a57ae079&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1554887" author="xgen-internal-githook" created="Fri, 21 Apr 2017 16:48:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;David Golden&apos;, &apos;username&apos;: &apos;xdg&apos;, &apos;email&apos;: &apos;xdg@xdg.me&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; use target_compile_definitions&lt;/p&gt;

&lt;p&gt;add_definitions() has global effect, so isn&apos;t good to include&lt;br/&gt;
in a .cmake file.  This commit instead publishes the definitions in a&lt;br/&gt;
variable and lets consumers set it on a target the same way they set&lt;br/&gt;
library/include paths.&lt;/p&gt;

&lt;p&gt;libmongoc will need a corresponding update.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/18da877a7b25ce5caa87d256c2d8b734ac813342&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/18da877a7b25ce5caa87d256c2d8b734ac813342&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1554700" author="xgen-internal-githook" created="Fri, 21 Apr 2017 14:57:22 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; fix semicolons in pkg-config files&lt;/p&gt;

&lt;p&gt;When libmongoc-1.0.pc and libmongoc-static-1.0.pc were generated by&lt;br/&gt;
CMake, the &quot;Libs&quot; list could be semicolon-delimited, rather than&lt;br/&gt;
space-delimited.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/11cda664a795659c7085f2ded7064807d737bb2e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/11cda664a795659c7085f2ded7064807d737bb2e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1554569" author="xgen-internal-githook" created="Fri, 21 Apr 2017 12:34:16 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;username&apos;: &apos;ajdavis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; set BSON_STATIC_LIBRARIES for CMake&lt;/p&gt;

&lt;p&gt;When a CMake project links to libbson statically it should do:&lt;/p&gt;

&lt;p&gt;find_package (libbson-static-1.0)&lt;/p&gt;

&lt;p&gt;With this change, the above command now sets BSON_STATIC_LIBRARIES, not&lt;br/&gt;
BSON_LIBRARIES, so a CMake project can now link some of its targets to&lt;br/&gt;
libbson statically and some dynamically.&lt;/p&gt;

&lt;p&gt;Also, define BSON_STATIC when building the libbson static library. This&lt;br/&gt;
avoids marking libbson&apos;s public functions for dynamic-library export&lt;br/&gt;
when building libbson&apos;s static lib. It probably has no effect either&lt;br/&gt;
way but seems like the logical thing to do.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/4ece6d16b196a7e4df943b88615889cd7fcea876&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/4ece6d16b196a7e4df943b88615889cd7fcea876&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1554224" author="jesse" created="Thu, 20 Apr 2017 22:13:01 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=rassi&quot; class=&quot;user-hover&quot; rel=&quot;rassi&quot;&gt;rassi&lt;/a&gt; you commented April 12. You said that &quot;the libmongoc shared library may be falsely advertising that it exports libbson API functions&quot; because it defines BSON_COMPILATION. That&apos;s fixed now, there&apos;s a separate MONGOC_COMPILATION macro.&lt;/p&gt;

&lt;p&gt;&quot;The mongoc_static target (and nearly all libmongoc targets) depends on bson-1.0, not bson-1.0-static.&quot; I&apos;ll fix that. First, &lt;tt&gt;libbson-static-1.0-config.cmake.in&lt;/tt&gt; should set a different variable, BSON_STATIC_LIBRARIES, instead of BSON_LIBRARIES. The other variables BSON_INCLUDE_DIRS and BSON_LIBRARY_DIRS will always be the same whether you use libbson statically or dynamically. &lt;/p&gt;

&lt;p&gt;Then libmongoc should run:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;find_package (libbson-1.0)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;find_package (libbson-static-1.0)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;Then it will build its own static lib by statically linking to libbson&apos;s static lib, while continuing to build its dynamic lib by dynamically linking to libbson&apos;s dynamic lib.&lt;/p&gt;

&lt;p&gt;You also wrote, &quot;The libbson and libmongoc static libraries are marking their API functions for DLL export.&quot; I don&apos;t think that matters, since when a static library is compiled (with any of our compilers), marking a function for DLL export has no effect.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=david.golden&quot; class=&quot;user-hover&quot; rel=&quot;david.golden&quot;&gt;david.golden&lt;/a&gt; you wrote, &quot;The C++ driver has worked around these issues by only building static or dynamic and not both.&quot; Since our Autotools build system can generate both at once, it must able to generate CMake config files that handle the situation where both static and dynamic libbson libs are install, or both static and dynamic libmongoc libs. I want to generate the &lt;b&gt;same&lt;/b&gt; config files when libbson or libmongoc are built and installed with CMake, so the CMake config files generated by CMake must &lt;b&gt;also&lt;/b&gt; handle the situation where both static and dynamic libs are installed. Therefore, when you build libbson and libmongoc with CMake, the simplest thing is to always build both static and dynamic libs, and generate CMake config files that can handle the situation where both static and dynamic libs are installed, by defining distinct variables like BSON_LIBRARIES and BSON_STATIC_LIBRARIES.&lt;/p&gt;</comment>
                            <comment id="1552021" author="xgen-internal-githook" created="Tue, 18 Apr 2017 20:37:13 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; libmongoc-static-1.0-config.cmake sets MONGOC_STATIC&lt;/p&gt;

&lt;p&gt;Also test static and dynamic linking, with and without SSL, on Windows.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/9ed167d84c80ddad4da2fc2adb32a7808521b139&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/9ed167d84c80ddad4da2fc2adb32a7808521b139&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1551953" author="rassi@10gen.com" created="Tue, 18 Apr 2017 19:40:22 +0000"  >&lt;p&gt;There is a variable substitution issue in the CMake-generated pkg-config files that affects libmongoc master.&lt;/p&gt;

&lt;p&gt;My installed libmongoc-1.0.pc file looks like the following (Mac OS X).  Note the invalid semicolon in the &quot;Libs&quot; section:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;prefix=/opt/static_test/libmongoc&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;exec_prefix=${prefix}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;libdir=${prefix}/lib&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;includedir=${exec_prefix}/include&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;Name: libmongoc&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;Description: The libmongoc MongoDB client library.&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;Version: 1.7.0-dev&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;Requires: libbson-1.0&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;Libs: -L${libdir} -lmongoc-1.0 /usr/lib/libsasl2.dylib /usr/lib/libssl.dylib;/usr/lib/libcrypto.dylib&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;Cflags: -I${includedir}/libmongoc-1.0&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;I can reproduce the issue as follows, from the root of the mongo-c-driver repository on my Mac, against libmongoc master (5857491):&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;cmake -DCMAKE_PREFIX_PATH=/path/to/libbson -DCMAKE_INSTALL_PREFIX=/path/to/libmongoc . &amp;amp;&amp;amp; make -j32 &amp;amp;&amp;amp; make install&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;My local temporary fix for this issue is to introduce the following code into CMakeLists.txt, and then to replace @SSL_LIBS@ in the relevant pc.in files with @SSL_LIBS_COPY@:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;foreach(FLAG ${SSL_LIBS})&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;    set(SSL_LIBS_COPY &quot;${SSL_LIBS_COPY} ${FLAG}&quot;)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;endforeach()&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;Note that 1.6.2 is not affected (these libraries are omitted from the &quot;Libs&quot; section in libmongoc-1.0.pc on 1.6.2), and the autotools-generated pkg-config files on master are not affected (in those files, these libraries are listed as &quot;-lssl -lcrypto&quot;).&lt;/p&gt;</comment>
                            <comment id="1550864" author="xgen-internal-githook" created="Mon, 17 Apr 2017 20:05:48 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;username&apos;: &apos;ajdavis&apos;, &apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; add ws2_32 to windows static cmake config&lt;/p&gt;

&lt;p&gt;Also test linking with cmake config files on Windows in Evergreen.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/b4b9c8bfe4d481cdfba14721665c0bd4cd12110a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/b4b9c8bfe4d481cdfba14721665c0bd4cd12110a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1549492" author="david.golden" created="Fri, 14 Apr 2017 17:20:41 +0000"  >&lt;p&gt;libmongoc PR is &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/pull/433&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;PR/187&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1549472" author="david.golden" created="Fri, 14 Apr 2017 17:03:23 +0000"  >&lt;p&gt;The C++ driver has worked around these issues by only building static or dynamic and not both, as controlled by the &lt;tt&gt;BUILD_SHARED_LIBS&lt;/tt&gt; variable.  While CMake doesn&apos;t exactly have a &quot;standard&quot; way to do things, this approach, toggling static or shared, seems often recommended and is used by large, well known libraries like googletest.&lt;/p&gt;

&lt;p&gt;In the long run, the C driver could explore making a similar change, but in the short run, not changes are necessary to unblock the C++ driver.&lt;/p&gt;

&lt;p&gt;However, I do believe that libbson should not globally add &lt;tt&gt;-DBSON_STATIC&lt;/tt&gt; to definitions but should instead publish it to a variable for consumers to use in a targeted way.  This is implemented in &lt;a href=&quot;https://github.com/mongodb/libbson/pull/187&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;PR/187&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I think this PR (and a corresponding change in libmongoc) should be part of the 1.7.0 release.&lt;/p&gt;</comment>
                            <comment id="1546809" author="rassi@10gen.com" created="Wed, 12 Apr 2017 07:29:13 +0000"  >&lt;p&gt;The CMake config files added in the commits above suffer from the issue that the static and non-static versions both export variables with the same names.  We should either change them to export variables with different names, or implement the decision that projects relying on them cannot support linking against both the static and non-static versions of the libraries in a single build.&lt;/p&gt;

&lt;p&gt;Currently, the mongoc_static target (and nearly all libmongoc targets) depends on bson-1.0, not bson-1.0-static.  This is due to the fact that libmongoc only calls find_package() on bson-1.0; it doesn&apos;t know about the existence of the bson-static-1.0 library at all.  This causes some unintuitive results: for example, the mongoc tests (e.g. &quot;test-libmongoc&quot;) are linking against static mongoc, but dynamic libbson.&lt;/p&gt;

&lt;p&gt;I&apos;ve also discovered the following additional potential issues with the export macros, as written.  Consider these issues to be minor, since I don&apos;t yet have evidence that they have user impact.&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;The libmongoc shared library may be falsely advertising that it exports libbson API functions.  This is due to the fact that defining BSON_COMPILATION causes BSON_API to expand to __declspec(dllexport), and mongoc_shared is defining BSON_COMPILATION when including libbson header files.  My suggested fix for this issue is to replace the &quot;#elif defined(BSON_COMPILATION)&quot; condition in bson-macros.h with some other &quot;#elif defined(X)&quot; condition, where X is a macro that is defined during libbson compilation but &lt;b&gt;not&lt;/b&gt; defined during libmongoc compilation.&lt;/li&gt;
	&lt;li&gt;The libbson and libmongoc static libraries are marking their API functions for DLL export.  This is because neither of them define their X_STATIC macros during compilation.  My suggested fix for this issue is to define MONGOC_STATIC when compiling libmongoc, and to define BSON_STATIC when compiling both.  This is consistent with advice given in the CMake manual (&quot;If the same sources are used to create both a shared and a static library, the uppercased symbol ${BASE_NAME}_STATIC_DEFINE should be used when building the static library&quot;, from &lt;a href=&quot;https://cmake.org/cmake/help/v3.2/module/GenerateExportHeader.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://cmake.org/cmake/help/v3.2/module/GenerateExportHeader.html&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="1543418" author="jesse" created="Fri, 7 Apr 2017 10:32:28 +0000"  >&lt;p&gt;One more task before this is done: Test static and dynamic linking on Windows in Evergreen for libbson and libmongoc. So far I&apos;ve only done Linux.&lt;/p&gt;</comment>
                            <comment id="1534511" author="bjori" created="Tue, 28 Mar 2017 03:50:52 +0000"  >&lt;p&gt;Always distributing the cmake package file sounds like a bad idea to me.&lt;/p&gt;

&lt;p&gt;The cmake manifest is still very much an afterthought and doesn&apos;t support nearly everything it should, not even building against the bundled libbson.&lt;/p&gt;

&lt;p&gt;Installing the cmake package helpers makes this support though become official and irremovable, which means we now have to spent effort into fixing the platform incompatibilities it has, other then just using it for generating windows manifests&lt;/p&gt;</comment>
                            <comment id="1533095" author="xgen-internal-githook" created="Mon, 27 Mar 2017 12:34:18 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2037&quot; title=&quot;Distribute pkg-config files for dynamic and static linking&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2037&quot;&gt;&lt;del&gt;CDRIVER-2037&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; convenient linking&lt;/p&gt;

&lt;p&gt;Whether built with CMake or the Autotools, libmongoc now installs CMake&lt;br/&gt;
config-file packages for libmongoc-1.0 and libmongoc-static-1.0, and pkg-config&lt;br/&gt;
files for the same.&lt;/p&gt;

&lt;p&gt;Compile and link an example program with all combinations: libmongoc built with&lt;br/&gt;
CMake or the Autotools, using static or dynamic linking, and finding libmongoc&lt;br/&gt;
with the CMake find_package command or with pkg-config.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/3a522396807209076e1cbee96da6a604112a4243&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/3a522396807209076e1cbee96da6a604112a4243&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1528488" author="xgen-internal-githook" created="Mon, 20 Mar 2017 18:41:16 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; add semicolon in Makefile.am&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/473407a9b8b55b8ab09b2e0d7d89177c8ca01a5a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/473407a9b8b55b8ab09b2e0d7d89177c8ca01a5a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1528476" author="xgen-internal-githook" created="Mon, 20 Mar 2017 18:31:32 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; allow find_package with no version&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/1e613c716c13d7e6468d559a95d3e6938db02cba&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/1e613c716c13d7e6468d559a95d3e6938db02cba&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1528475" author="xgen-internal-githook" created="Mon, 20 Mar 2017 18:31:31 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; fix cmake path in test script&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/cfc24f9eaddd0db88a834d69cfdee642b1b5ffd5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/cfc24f9eaddd0db88a834d69cfdee642b1b5ffd5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1528474" author="xgen-internal-githook" created="Mon, 20 Mar 2017 18:31:30 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2037&quot; title=&quot;Distribute pkg-config files for dynamic and static linking&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2037&quot;&gt;&lt;del&gt;CDRIVER-2037&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; easy linking pt 2&lt;/p&gt;

&lt;p&gt;Add and test config-version.cmake files, update example CMake style,&lt;br/&gt;
more cleanly test in Autotools install-exec-hook whether static linking&lt;br/&gt;
is enabled, clearer test matrix.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/e50bfae13a7ca2042be03fabf577c76815800773&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/e50bfae13a7ca2042be03fabf577c76815800773&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1524983" author="jesse" created="Wed, 15 Mar 2017 18:12:32 +0000"  >&lt;p&gt;Done for libbson. Still to do for libmongoc.&lt;/p&gt;</comment>
                            <comment id="1524977" author="xgen-internal-githook" created="Wed, 15 Mar 2017 18:11:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2037&quot; title=&quot;Distribute pkg-config files for dynamic and static linking&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2037&quot;&gt;&lt;del&gt;CDRIVER-2037&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2083&quot; title=&quot;Distribute CMake config packages for statically linking to libbson and libmongoc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2083&quot;&gt;&lt;del&gt;CDRIVER-2083&lt;/del&gt;&lt;/a&gt; easy static linking&lt;/p&gt;

&lt;p&gt;Distribute separate pkg-config files and CMake config packages for&lt;br/&gt;
programs that want to statically link to libbson.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/66baac8c6cb228a3a5e2af3d90442c868a2bb54e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/66baac8c6cb228a3a5e2af3d90442c868a2bb54e&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="365033">CXX-1257</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="384463">CDRIVER-2166</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="390296">CDRIVER-2175</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="382343">CDRIVER-2157</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="379812">CXX-1330</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CDRIVER-2074</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrau7r:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1641">C Driver 2017 3 - March 7</customfieldvalue>
    <customfieldvalue id="1666">C Driver 2017 3 - March 8</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>