@matheusbsbs / matheus-bagliano / commits / 310e0216c8
Fork 0

Stop using compat/regex.c on platforms with working regexp library

We used to have non-POSIX comformant BRE in our code, and linked with GNU regexp library on a few platforms (Darwin, FreeBSD and AIX) to work it around. This was backwards. We've fixed the broken regexps to use ERE that native regexp libraries on these platforms can handle just fine. There is no need to link with GNU regexp library on these platforms anymore. Tested-on-AIX-by: Mike Ralphson <mike@abacus.co.uk> Tested-on-FreeBSD-by: Jeff King <peff@peff.net> Tested-on-Darwin-by: Arjen Laarhoven <arjen@yaph.org> Tested-on-Darwin-by: Pieter de Bie <pieter@frim.nl> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Oct 23, 2008 at 19:44 UTC 310e0216c80484d429dbdec547ab52a93236eb60
1 file changed -6
Makefile
-6
@@ -640,8 +640,6 @@ ifeq ($(uname_S),Darwin)
640 endif
641 NO_STRLCPY = YesPlease
642 NO_MEMMEM = YesPlease
643 - COMPAT_CFLAGS += -Icompat/regex
644 - COMPAT_OBJS += compat/regex/regex.o
643 endif
644 ifeq ($(uname_S),SunOS)
645 NEEDS_SOCKET = YesPlease
@@ -692,8 +690,6 @@ ifeq ($(uname_S),FreeBSD)
690 BASIC_LDFLAGS += -L/usr/local/lib
691 DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
692 THREADED_DELTA_SEARCH = YesPlease
695 - COMPAT_CFLAGS += -Icompat/regex
696 - COMPAT_OBJS += compat/regex/regex.o
693 endif
694 ifeq ($(uname_S),OpenBSD)
695 NO_STRCASESTR = YesPlease
@@ -720,8 +716,6 @@ ifeq ($(uname_S),AIX)
716 INTERNAL_QSORT = UnfortunatelyYes
717 NEEDS_LIBICONV=YesPlease
718 BASIC_CFLAGS += -D_LARGE_FILES
723 - COMPAT_CFLAGS += -Icompat/regex
724 - COMPAT_OBJS += compat/regex/regex.o
719 endif
720 ifeq ($(uname_S),GNU)
721 # GNU/Hurd