git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Makefile: Change the default compiler from "gcc" to "cc"

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Feb 12, 2012, 00:05 UTC
Message-ID
<CACBZZX4BTiTCWQGXJ2Ny+G5UH3MCwy2sgwBPEVLbDSPYOoiOWw@mail.gmail.com>
In-Reply-To
<7vr4zyiyih.fsf@alter.siamese.dyndns.org>
On Wed, Dec 21, 2011 at 01:01, Junio C Hamano <gitster@pobox.com> wrote:
Show 12 quoted lines
> Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
>
>> However unlike Linux Git is written in ANSI C and supports a multitude
>> of compilers, including Clang, Sun Studio, xlc etc. On my Linux box
>> "cc" is a symlink to clang, and on a Solaris box I have access to "cc"
>> is Sun Studio's CC.
>>
>> Both of these are perfectly capable of compiling Git, and it's
>> annoying to have to specify CC=cc on the command-line when compiling
>> Git when that's the default behavior of most other portable programs.
>
> Would this affect folks in BSD land negatively?

I see my mail back it December didn't include a reply to that for some reason.

Anyway like Linus said probably not, also the BSD's I use have cc as a symlink to whatever the default compiler is, which is usually gcc.

I've recently been hacking git on Solaris again and keep getting bit by this, I'd like to propose it for inclusion again, the patch still applies.

Previous: Linus Torvalds
Message 5 of 5 in “Makefile: Change the default compiler from "gcc" to "cc"”
  1. Makefile: Change the default compiler from "gcc" to "cc"Ævar Arnfjörð Bjarmason, Dec 20, 2011
  2. Junio C HamanoDec 21, 2011
  3. Ævar Arnfjörð BjarmasonDec 21, 2011
  4. Linus TorvaldsDec 21, 2011
  5. Ævar Arnfjörð BjarmasonFeb 12, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.