glibc: elf/cache.c not compiling with -Werror

This commit is contained in:
heitbaum 2021-10-03 11:56:00 +11:00 committed by Rudi Heitbaum
parent fa73826b42
commit 185a00db16

View File

@ -19,7 +19,6 @@ PKG_CONFIGURE_OPTS_TARGET="BASH_SHELL=/bin/sh \
--libexecdir=/usr/lib/glibc \
--cache-file=config.cache \
--disable-profile \
--disable-werror \
--disable-sanity-checks \
--enable-add-ons \
--enable-bind-now \
@ -51,6 +50,9 @@ pre_configure_target() {
export CFLAGS=$(echo ${CFLAGS} | sed -e "s|-Ofast|-O2|g")
export CFLAGS=$(echo ${CFLAGS} | sed -e "s|-O.|-O2|g")
export CFLAGS=$(echo ${CFLAGS} | sed -e "s|-Wunused-but-set-variable||g")
export CFLAGS="${CFLAGS} -Wno-unused-variable"
if [ -n "${PROJECT_CFLAGS}" ]; then
export CFLAGS=$(echo ${CFLAGS} | sed -e "s|${PROJECT_CFLAGS}||g")
fi