From b6c255257cef2d9716bac04b73d06af81cc7a6b8 Mon Sep 17 00:00:00 2001 From: neverchanje Date: Mon, 14 Dec 2020 00:22:55 +0800 Subject: [PATCH] fix: compile error of zookeeper 3.4.10 on gcc9 --- thirdparty/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt index a44993f449..eae8bd8098 100644 --- a/thirdparty/CMakeLists.txt +++ b/thirdparty/CMakeLists.txt @@ -132,7 +132,7 @@ ExternalProject_Add(zookeeper URL ${OSS_URL_PREFIX}/zookeeper-3.4.10.tar.gz http://ftp.jaist.ac.jp/pub/apache/zookeeper/zookeeper-3.4.10/zookeeper-3.4.10.tar.gz URL_MD5 e4cf1b1593ca870bf1c7a75188f09678 - CONFIGURE_COMMAND cd src/c && ./configure --enable-static=yes --enable-shared=no --prefix=${TP_OUTPUT} --with-pic=yes + CONFIGURE_COMMAND cd src/c && CFLAGS=-Wno-error=format-overflow ./configure --enable-static=yes --enable-shared=no --prefix=${TP_OUTPUT} --with-pic=yes BUILD_COMMAND cd src/c && make INSTALL_COMMAND cd src/c && make install BUILD_IN_SOURCE 1