Sam Steingold wrote:
> why not just apply the patch?

You can also have your patch automatically applied by gnulib-tool.
To achieve this:
  - create a directory, say, gnulib-local,
  - store your regcomp.diff in gnulib-local/lib/regcomp.c.diff
    and        regexec.diff in gnulib-local/lib/regexec.c.diff,
  - pass the option --local-dir=gnulib-local to gnulib-tool.

The diffs may require updates every few months, when the copy in gnulib
changes. (gnulib-tool gives an error when a .diff is stored in gnulib-local
but it does not apply cleanly any more.)

But it's an alternative to weird Makefile hacks that would use gcc when the
user specified g++.

Bruno



Reply via email to