Fix the error when building glibc with gcc 9

Signed-off-by: Zheng, Qi <huaiqing.zq@antgroup.com>
This commit is contained in:
Zheng, Qi 2021-09-16 11:01:26 +08:00 committed by Zongmin.Gu
parent 85f9333fbe
commit 69d3d3fca2

@ -3,8 +3,8 @@ SRC_DIR=/tmp/glibc/glibc
BUILD_DIR=/tmp/glibc/glibc_build
INSTALL_DIR=/opt/occlum/glibc
# GCC 10 introduces many new checkings and will cause the build to fail.
if [ "$(gcc -dumpversion)" = "10" ]; then
# GCC 9/10 introduces many new checkings and will cause the build to fail.
if [ "$(gcc -dumpversion)" = "9" -o "$(gcc -dumpversion)" = "10" ]; then
EXTRA_CFLAGS=-fcommon
EXTRA_CONFIG_OPTION="--disable-werror"
fi