[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: regex cannot be compiled with g++
From: |
Bruno Haible |
Subject: |
Re: regex cannot be compiled with g++ |
Date: |
Fri, 19 Oct 2007 04:27:38 +0200 |
User-agent: |
KMail/1.5.4 |
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