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

Re: [PATCH 2/3] Makefile: Reorder linker flags in the git executable rule

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 27, 2014, 17:42 UTC
Message-ID
<xmqq61f5flz6.fsf@gitster.dls.corp.google.com>
In-Reply-To
<20141027051705.GC2996@peff.net>
Jeff King <peff@peff.net> writes:
Show 17 quoted lines
> On Sun, Oct 26, 2014 at 02:54:56PM -0400, David Michael wrote:
>
>> Yes, the compiler refuses to run by default when a "-L" option occurs
>> after a source/object file.  It tries to interpret it as another file
>> name and fails.
>
> Yeah, I think I have seen similar behavior before, but it has been long
> enough that I no longer remember the compiler in use.
>
>> I believe I can work around the error with an "export _C89_CCMODE=1",
>> but I thought I'd send the patch since this is the only occurrence of
>> the problem, and the argument order is inconsistent with other linker
>> commands in the file.
>
> I don't think working around it makes sense. That would fix your case,
> but nobody else's (though given how long it has been that way without
> complaints, I suspect any other compilers this picky may have died off).
I think you meant s/nobody else's/breaks &/;

With that, I agree with your assessment. The diff itself is probably fine as-is (I didn't look at it for more than 10 seconds, though ;-). And I agree that it needs to be better explained.

Show 9 quoted lines
>> Do you want me to resend the patch and reference the IBM documentation
>> in the message?
>
> I don't think you need to. More interesting than documentation is the
> real-world breakage you experienced and the analysis of the situation.
> I'd be fine taking the patch as-is, or if changing anything, mentioning
> the failure mode in the commit message.
>
> -Peff
Previous: Jeff KingNext: Jeff King
Message 6 of 7 in “Makefile: Reorder linker flags in the git executable rule”
  1. 2/3 Makefile: Reorder linker flags in the git executable ruleDavid Michael, Oct 26, 2014
  2. Eric SunshineOct 26, 2014
  3. Jeff KingOct 26, 2014
  4. David MichaelOct 26, 2014
  5. Jeff KingOct 27, 2014
  6. Junio C HamanoOct 27, 2014
  7. Jeff KingOct 28, 2014

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.