Fix the error when building glibc with gcc 9
Signed-off-by: Zheng, Qi <huaiqing.zq@antgroup.com>
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user