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

Re: [PATCH] Improve QNX support in GIT

From
Mike Gorchak <mike.gorchak.qnx@gmail.com>
Date
Feb 24, 2013, 14:12 UTC
Message-ID
<CAHXAxrO_AeLoHw6TaVkDZsS=J6Ro+qEuMs4rbyCoFuHAGT+6vg@mail.gmail.com>
In-Reply-To
<7vvc9i5cbw.fsf@alter.siamese.dyndns.org>
Show 9 quoted lines
>>> 2) Rename fnmatch.h to fnmatch_gnu.h and fnmatch.c to fnmatch_gnu.c to
>>> avoid inclusion of system fnmatch.h header in case if -I/usr/include
>>> path is specified before -Icompat/fnmatch. Which is common situation.
> As to the substance, I am fairly negative about the approach this
> patch takes, especially the rationale it uses for #2 above.  It goes
> directly against the spirit of having compat/ directory in the first
> place to have -I/usr/include _before_ -Icompat/anything and that,
> not the names of header files in compat/ directory, is the root
> cause of the problem you are seeing, I think.

It is quite common to pass CPPFLAGS/CFLAGS/CXXFLAGS before configure script to make a custom build. For example, I have specific set of headers which belong to another version of libc, so I pass directory where these headers are located right before configure script:

CFLAGS="-I/usr/qnxVVV/include" LDFLAGS="-I/usr/qnxVVV/lib" ./configure --prefix=/usr

About this you can read by typing ./configure --help. This approach works for every autoconf-based project, except for GIT due to headers collision. I do not know anything about "spirit of compat/ directory", but if it interferes with the normal build process, it means something is wrong. But it is up to you.

Thanks.
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 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.