{"thread":{"id":"57255","subject":"[PATCH] build: centos/RHEL 7 ships with an older gcc and zlib","startedAt":"2022-01-16T02:05:25Z","lastAt":"2022-01-16T02:05:25Z","messageCount":1,"participants":["David Aguilar"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"446300","messageId":"20220116020520.26895-1-davvid@gmail.com","threadId":"57255","inReplyTo":null,"subject":"[PATCH] build: centos/RHEL 7 ships with an older gcc and zlib","fromName":"David Aguilar","fromEmail":"davvid@gmail.com","sentAt":"2022-01-16T02:05:20Z","receivedAt":"2022-01-16T02:05:25Z","isPatch":true,"sender":{"key":"davvid@gmail.com","avatar":"https://avatars.githubusercontent.com/u/13196?v=4"},"body":"GCC 4.8.5 is the default system compiler on centos7/RHEL7.\nThis version requires -std=c99 to enable c99 support.\n\nzlib 1.2.7 on centos7/rhel7 lacks uncompress2().\n\nSigned-off-by: David Aguilar <davvid@gmail.com>\n---\n config.mak.uname | 5 +++++\n 1 file changed, 5 insertions(+)\n\ndiff --git a/config.mak.uname b/config.mak.uname\nindex 9b3e9bff5f..c48db45106 100644\n--- a/config.mak.uname\n+++ b/config.mak.uname\n@@ -63,6 +63,11 @@ ifeq ($(uname_S),Linux)\n \tPROCFS_EXECUTABLE_PATH = /proc/self/exe\n \tHAVE_PLATFORM_PROCINFO = YesPlease\n \tCOMPAT_OBJS += compat/linux/procinfo.o\n+\t# centos7/rhel7 provides gcc 4.8.5 and zlib 1.2.7.\n+\tifneq ($(findstring .el7.,$(uname_R)),)\n+\t\tBASIC_CFLAGS += -std=c99\n+\t\tNO_UNCOMPRESS2 = YesPlease\n+\tendif\n endif\n ifeq ($(uname_S),GNU/kFreeBSD)\n \tHAVE_ALLOCA_H = YesPlease\n-- \n2.30.1 (Apple Git-130)\n\n"}]}