<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:59:56 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>[CXX-675] Support for environment variables CC, CXX, CFLAGS, CXXFLAGS, LD, CPP, ...</title>
                <link>https://jira.mongodb.org/browse/CXX-675</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;The standard environment variables should be used when compiling;&lt;/p&gt;

&lt;p&gt;at the moment those variables are disregarded and one needs to specify -DCMAKE_CXX_COMPILER explicitly&lt;/p&gt;</description>
                <environment></environment>
        <key id="231297">CXX-675</key>
            <summary>Support for environment variables CC, CXX, CFLAGS, CXXFLAGS, LD, CPP, ...</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="backlog-server-platform">DO NOT USE - Backlog - Platform Team</assignee>
                                    <reporter username="karo">Karolin Varner</reporter>
                        <labels>
                    </labels>
                <created>Thu, 24 Sep 2015 13:12:06 +0000</created>
                <updated>Tue, 23 Feb 2016 18:25:23 +0000</updated>
                            <resolved>Tue, 23 Feb 2016 18:25:23 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1182184" author="acm" created="Tue, 23 Feb 2016 18:25:23 +0000"  >&lt;p&gt;The CMake way is the correct way to handle this.&lt;/p&gt;</comment>
                            <comment id="1042305" author="xgen-internal-githook" created="Thu, 24 Sep 2015 17:27:29 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;koraa&apos;, u&apos;name&apos;: u&apos;Karolin Varner&apos;, u&apos;email&apos;: u&apos;karo@cupdev.net&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-675&quot; title=&quot;Support for environment variables CC, CXX, CFLAGS, CXXFLAGS, LD, CPP, ...&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-675&quot;&gt;&lt;del&gt;CXX-675&lt;/del&gt;&lt;/a&gt; Static bsoncxx library wrongly called libbson.a&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/4f447bcfcac0dc47f55a19f1c4b4739ea70efa57&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/4f447bcfcac0dc47f55a19f1c4b4739ea70efa57&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1042264" author="acm" created="Thu, 24 Sep 2015 17:01:24 +0000"  >&lt;p&gt;We will consider it, but for now I don&apos;t think we want to change this. Perhaps later we can add a build flag that will allow opt-in to populating the CMake variables from the analogous shell variables, but given that there is an easy workaround (cmake -DCMAKE_C_COMPILER=$CC) I don&apos;t think this is a priority for us.&lt;/p&gt;</comment>
                            <comment id="1042178" author="karo" created="Thu, 24 Sep 2015 16:09:12 +0000"  >&lt;p&gt;I am aware that it is pretty common for cmake projects to ignore these, which in my opinion is pretty terrible.&lt;/p&gt;

&lt;p&gt;Neither are those variables autoconf specific. They provide a generic non-tool-specific way of setting those variables and they have been around for a long time.&lt;br/&gt;
It&apos;s a de-facto standard.&lt;/p&gt;

&lt;p&gt;The argument for not supporting them normally is around the lines, that one wants a clean, reproducible build on all systems.&lt;br/&gt;
Personally, I disagree with that argument, because it assumes those variables are generally set by accident or something.&lt;br/&gt;
If someone decides to specify those variables, even in their shell configuration, they probably intended something with it. If the setting specified in those variables is the cause of failure, IMO the correct way to deal with that is to fail and let the user decide how she wants to deal with the situation, rater than silently choosing a different compiler. &lt;/p&gt;</comment>
                            <comment id="1042151" author="acm" created="Thu, 24 Sep 2015 15:52:53 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=karo&quot; class=&quot;user-hover&quot; rel=&quot;karo&quot;&gt;karo&lt;/a&gt; - I think that is actually pretty standard for CMake based projects. You are expected to set the CMake variables on the command line, not the autoconf style ones.&lt;/p&gt;</comment>
                    </comments>
                    <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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsa2pz:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>