File tree Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -63,25 +63,28 @@ tar -C /tmp -xf "$TARBALL"
6363
6464cd " $BUILD_DIR "
6565
66- # Unset it to keep glibc configure happy
66+ # Unset to keep glibc configure happy
6767unset LD_LIBRARY_PATH
68- CFLAGS=" -O2 -fPIC -fcommon \
69- -Wno-error=array-parameter \
70- -Wno-error=array-bounds \
71- -Wno-error=maybe-uninitialized \
72- -Wno-error=zero-length-bounds \
73- -Wno-error=stringop-overflow \
74- -Wno-error=deprecated-declarations \
75- -Wno-error=use-after-free \
76- -Wno-error=builtin-declaration-mismatch \
77- -Wno-error"
68+
69+ # Suppress warnings that GCC 13+ promotes to errors
70+ COMMON_FLAGS=" -O2 -fPIC -fcommon \
71+ -Wno-error=array-parameter \
72+ -Wno-error=array-bounds \
73+ -Wno-error=maybe-uninitialized \
74+ -Wno-error=zero-length-bounds \
75+ -Wno-error=stringop-overflow \
76+ -Wno-error=deprecated-declarations \
77+ -Wno-error=use-after-free \
78+ -Wno-error=builtin-declaration-mismatch \
79+ -Wno-error"
80+
81+ export CFLAGS=" $COMMON_FLAGS "
82+ export CPPFLAGS=" $COMMON_FLAGS "
7883
7984../glibc-$GLIBC_VERSION /configure \
8085 --prefix=" $PREFIX " \
8186 --without-selinux
8287
83-
84-
8588make -j" $( nproc) "
8689make install
8790
You can’t perform that action at this time.
0 commit comments