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

Re: [PATCH] Improve QNX support in GIT

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 25, 2013, 07:14 UTC
Message-ID
<7vtxp0zwyn.fsf@alter.siamese.dyndns.org>
In-Reply-To
<7vvc9h4d7c.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 9 quoted lines
> Mike Gorchak <mike.gorchak.qnx@gmail.com> writes:
>
>> CFLAGS="-I/usr/qnxVVV/include" LDFLAGS="-I/usr/qnxVVV/lib" ./configure
>> --prefix=/usr
>
> Oh, I didn't notice that, but the definition of ALL_CFLAGS may be
> what is wrong.  It allows CFLAGS to come before BASIC_CFLAGS that
> adds -Icompat/, which goes against the whole point of having
> replacement headers in compat/ directory.

Also, in general, as the end-user input, we would want to make it take the precedence, so that CFLAGS can be used to override the default command line; e.g. we may have -DMACRO=value on BASIC_CFLAGS or others on ALL_CFLAGS, and let the users who know what they are doing use CFLAGS=-DMACRO=anothervalue to override it.

Swapping the order between CFLAGS and BASIC_CFLAGS in ALL_CFLAGS may be a good change for that reason as well.

In any case, I won't take a patch to rename source files left and right only to work around name collisions with random system header files we do not even use ourselves, unless/until I know we have tried all the other saner approaches first. That's a workaround, not a solution.

Previous: Junio C HamanoNext: Mike Gorchak
Message 6 of 7 in “Improve QNX support in GIT”
  1. Improve QNX support in GITMike Gorchak, Feb 23, 2013
  2. Mike GorchakFeb 24, 2013
  3. Junio C HamanoFeb 24, 2013
  4. Mike GorchakFeb 24, 2013
  5. Junio C HamanoFeb 24, 2013
  6. Junio C HamanoFeb 25, 2013
  7. Mike GorchakFeb 25, 2013

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.