From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] Putting CC and CXX into make.conf
Date: Thu, 09 Feb 2023 14:03:16 +0100 [thread overview]
Message-ID: <bb4d7891e9f431934b3507b0ff6c39bf65b6e7e8.camel@gentoo.org> (raw)
Hi,
I'd like to propose that we work towards having good defaults for CC
and CXX variables in make.conf files. Something like:
CC=${CHOST}-gcc
CXX=${CHOST}-g++
or:
CC=${CHOST}-cc
CXX=${CHOST}-c++
Why?
Right now we're pretty much relying on autoconf defaults: if CC/CXX is
unset, autoconf looks for ${CHOST}-gcc and ${CHOST}-g++ appropriately.
However, autoconf is only one of the many build systems (and no longer
very popular, I'd say) and whenever apps use another build system or
override the default lookup in autoconf, we need to 'tc-export CC CXX'
in order to ensure that the right name is picked.
Furthermore, some of us (myself included) actually set CC and CXX
in their make.conf to a different value. As a result, they are exported
already on our systems and it's hard for us to notice that our ebuilds
are missing the tc-export call.
I'm not aware of any downsides to having them set by default, except for
the potentially problematic migration of existing systems.
What are your thoughts?
--
Best regards,
Michał Górny
next reply other threads:[~2023-02-09 13:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-09 13:03 Michał Górny [this message]
2023-02-09 13:17 ` [gentoo-dev] Putting CC and CXX into make.conf James Le Cuirot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bb4d7891e9f431934b3507b0ff6c39bf65b6e7e8.camel@gentoo.org \
--to=mgorny@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox