diff options
author | David Aguilar <davvid@gmail.com> | 2022-01-15 18:05:20 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-01-16 14:18:17 -0800 |
commit | ffb9f2980902d23a5640435306031bc298eb4e02 (patch) | |
tree | 4435286a9def792b11667018b31e13da0aa32a33 | |
parent | Merge branch 'hn/reftable' (diff) | |
download | tgif-ffb9f2980902d23a5640435306031bc298eb4e02.tar.xz |
build: centos/RHEL 7 ships with an older gcc and zlib
GCC 4.8.5 is the default system compiler on centos7/RHEL7.
This version requires -std=c99 to enable c99 support.
zlib 1.2.7 on centos7/rhel7 lacks uncompress2().
Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | config.mak.uname | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config.mak.uname b/config.mak.uname index a3a779327f..5ed1d8755f 100644 --- a/config.mak.uname +++ b/config.mak.uname @@ -63,6 +63,11 @@ ifeq ($(uname_S),Linux) PROCFS_EXECUTABLE_PATH = /proc/self/exe HAVE_PLATFORM_PROCINFO = YesPlease COMPAT_OBJS += compat/linux/procinfo.o + # centos7/rhel7 provides gcc 4.8.5 and zlib 1.2.7. + ifneq ($(findstring .el7.,$(uname_R)),) + BASIC_CFLAGS += -std=c99 + NO_UNCOMPRESS2 = YesPlease + endif endif ifeq ($(uname_S),GNU/kFreeBSD) HAVE_ALLOCA_H = YesPlease |