|
Message-ID: <20161006192811.xy5iahvczigfgapa@sigill.intra.peff.net> Date: Thu, 6 Oct 2016 15:28:11 -0400 From: Jeff King <peff@...f.net> To: Rich Felker <dalias@...c.org> Cc: Ævar Arnfjörð Bjarmason <avarab@...il.com>, Johannes Schindelin <Johannes.Schindelin@....de>, Git <git@...r.kernel.org>, musl@...ts.openwall.com Subject: Re: Regression: git no longer works with musl libc's regex impl On Thu, Oct 06, 2016 at 03:25:00PM -0400, Rich Felker wrote: > > No, I think that is the exact purpose of configure.ac and autoconf. > > > > It would be neat if we could auto-fallback during the build. Rich > > suggested always compiling compat/regex.c, and just having it be a noop > > at the preprocessor level. I'm not sure if that would work, though, > > because we'd have to include the system "regex.h" to know if we have > > REG_STARTEND, at which point it is potentially too late to compile our > > own regex routines (we're potentially going to conflict with the system > > declarations). > > If you have autoconf testing for REG_STARTEND at configure time then > compat/regex.c can #include "config.h" and test for HAVE_REG_STARTEND > rather than for REG_STARTEND, or something like that. Right, that part is easy; we do not even have to touch compat/regex.c, because we already have such a knob in the Makefile (NO_REGEX), and autoconf just needs to tweak that knob. My question was whether we could do it without running a separate compile (via autoconf or via the Makefile), and I think the answer is "no". -Peff
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.