<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:14:05 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-2074] Convenient usage as a static library</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2074</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Make it convenient and obvious how direct users of libbson and libmongoc should compile their code and link to libbson as a dynamic or standard library. This applies to Unix and Windows, and it applies to people using CMake, pkg-config, or manually specifying configuration flags.&lt;/p&gt;

&lt;p&gt;Coordinate with immediate dependency libraries like the C++11 Driver so that its users, too, can conveniently compile and link in all these configurations.&lt;/p&gt;

&lt;p&gt;Possible steps (my current understanding):&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;&lt;b&gt;Done&lt;/b&gt; Introduce preprocessor symbols BSON_STATIC and MONGOC_STATIC, by analogy with &lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/blob/legacy/src/mongo/client/export_macros.h#L43-L55&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this code from the legacy C++ driver&lt;/a&gt; - this should resolve &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2054&quot; title=&quot;Windows static build is broken in 1.5.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2054&quot;&gt;&lt;del&gt;CDRIVER-2054&lt;/del&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;b&gt;Done&lt;/b&gt; Update our .pc files so pkg-config --static defines the right options&lt;/li&gt;
	&lt;li&gt;&lt;b&gt;Done&lt;/b&gt; Update our CMake modules so the C++11 driver (and similar direct dependency libraries or applications that use CMake) can choose to link statically or dynamically&lt;/li&gt;
	&lt;li&gt;&lt;b&gt;Done&lt;/b&gt; I removed the CMake options BSON_ROOT_DIR and MONGOC_ROOT_DIR in &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1058&quot; title=&quot;Install CMake &amp;#39;config&amp;#39; style files for find_package&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1058&quot;&gt;&lt;del&gt;CDRIVER-1058&lt;/del&gt;&lt;/a&gt;, in favor of the standard CMAKE_PREFIX_PATH, should we reintroduce them? &lt;b&gt;This is ok?&lt;/b&gt;&lt;/li&gt;
	&lt;li&gt;&lt;b&gt;Done&lt;/b&gt; Update libbson and libmongoc docs to better explain how to use the libbson and libmongoc as static or shared libs&lt;/li&gt;
	&lt;li&gt;&lt;b&gt;Done&lt;/b&gt; Instructions for linking, statically or not, with libmongoc and libbson using Visual Studio GUI&lt;/li&gt;
	&lt;li&gt;Add &quot;#pragma lib&quot; statements to bson.h and mongoc.h so Visual Studio users can have their linker options automatically configured&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="359475">CDRIVER-2074</key>
            <summary>Convenient usage as a static library</summary>
                <type id="11" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14707&amp;avatarType=issuetype">Epic</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="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="jesse@mongodb.com">A. Jesse Jiryu Davis</reporter>
                        <labels>
                    </labels>
                <created>Tue, 28 Feb 2017 21:40:45 +0000</created>
                <updated>Fri, 23 Mar 2018 20:42:23 +0000</updated>
                            <resolved>Fri, 16 Jun 2017 17:18:08 +0000</resolved>
                                                    <fixVersion>1.7.0</fixVersion>
                                    <component>Build</component>
                    <component>libbson</component>
                    <component>libmongoc</component>
                                        <votes>1</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1600892" author="xgen-internal-githook" created="Mon, 19 Jun 2017 17:20:49 +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: Merge branch &apos;evergreen-fix&apos; into &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;-static-pkg&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;evergreen-fix:&lt;br/&gt;
  &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2074&quot; title=&quot;Convenient usage as a static library&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2074&quot;&gt;&lt;del&gt;CDRIVER-2074&lt;/del&gt;&lt;/a&gt; Fix static linking evergreen matrix to fail on error&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/f21010190e03441fe8770ad09a904b0d2dffb5f4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/f21010190e03441fe8770ad09a904b0d2dffb5f4&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="1600890" author="xgen-internal-githook" created="Mon, 19 Jun 2017 17:20:42 +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-2074&quot; title=&quot;Convenient usage as a static library&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2074&quot;&gt;&lt;del&gt;CDRIVER-2074&lt;/del&gt;&lt;/a&gt; Fix static linking evergreen matrix to fail on error&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/5a6003cdea18299d2334968a13c36e41a3214a3d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/5a6003cdea18299d2334968a13c36e41a3214a3d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1545429" author="xgen-internal-githook" created="Mon, 10 Apr 2017 19:43:39 +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-2074&quot; title=&quot;Convenient usage as a static library&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2074&quot;&gt;&lt;del&gt;CDRIVER-2074&lt;/del&gt;&lt;/a&gt; static-link guide for MSVC GUI&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/52b3d7b11f6682d98c31199b3f8ebcfac6acf532&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/52b3d7b11f6682d98c31199b3f8ebcfac6acf532&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1543010" author="xgen-internal-githook" created="Thu, 6 Apr 2017 20:38:57 +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-2074&quot; title=&quot;Convenient usage as a static library&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2074&quot;&gt;&lt;del&gt;CDRIVER-2074&lt;/del&gt;&lt;/a&gt; instructions for MSVC GUI&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/6d1ea889e48db42910ebeb197d56d214f4e3c463&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/6d1ea889e48db42910ebeb197d56d214f4e3c463&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1543009" author="xgen-internal-githook" created="Thu, 6 Apr 2017 20:38:55 +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-2074&quot; title=&quot;Convenient usage as a static library&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2074&quot;&gt;&lt;del&gt;CDRIVER-2074&lt;/del&gt;&lt;/a&gt; instructions for MSVC GUI&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/72863e8c18a30ac0fbc39f9d6a9a6412f55ab03a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/72863e8c18a30ac0fbc39f9d6a9a6412f55ab03a&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="387645">CDRIVER-2171</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="382343">CDRIVER-2157</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_10858" key="com.pyxis.greenhopper.jira:gh-epic-label">
                        <customfieldname>Epic Name</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>convenient-static</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10859" key="com.pyxis.greenhopper.jira:gh-epic-status">
                        <customfieldname>Epic Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10642"><![CDATA[Done]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrau7j:</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>