Skip to content

Commit 0e6d899

Browse files
avargitster
authored andcommitted
config.mak.uname: set NO_REGEX=NeedsStartEnd on AIX
Set the NO_REGEX=NeedsStartEnd Makefile flag by default on AIX. Since commit 2f89522 ("regex: add regexec_buf() that can work on a non NUL-terminated string", 2016-09-21) git has errored out at compile-time if the regular expression library doesn't support REG_STARTEND. While looking through Google search results for the use of NO_REGEX I found a Chef recipe that set this on AIX[1], looking through the documentation for the latest version of AIX (7.2, released October 2015) shows that its regexec() doesn't have REG_STARTEND. 1. chef/omnibus-software@e247e36761#diff-3df898345d670979b74acc0bf71d8c47 2. https://www.ibm.com/support/knowledgecenter/ssw_aix_72/com.ibm.aix.basetrf2/regexec.htm Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 49800c9 commit 0e6d899

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

config.mak.uname

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ ifeq ($(uname_S),AIX)
237237
NO_MKDTEMP = YesPlease
238238
NO_STRLCPY = YesPlease
239239
NO_NSEC = YesPlease
240+
NO_REGEX = NeedsStartEnd
240241
FREAD_READS_DIRECTORIES = UnfortunatelyYes
241242
INTERNAL_QSORT = UnfortunatelyYes
242243
NEEDS_LIBICONV = YesPlease

0 commit comments

Comments
 (0)