glibc: set glibc build system default_cflags empty

By setting glibc build system default_cflags to be empty before
building, we will enforce the build system to only use the crosstool-ng
CFLAGS when building glibc.

Properly solves the issue identified in #1396.

Signed-off-by: Hans-Christian Noren Egtvedt <hegtvedt@cisco.com>
This commit is contained in:
Hans-Christian Noren Egtvedt 2020-10-05 15:35:57 +02:00
parent 80a2e0cf87
commit 60e782fdec

View File

@ -314,6 +314,8 @@ glibc_backend_once()
;;
esac
# Make sure glibc build system respects our provided CFLAGS.
extra_make_args+=( default_cflags= )
extra_make_args+=( "BUILD_CFLAGS=${build_cflags}" )
extra_make_args+=( "BUILD_CPPFLAGS=${build_cppflags}" )
extra_make_args+=( "BUILD_LDFLAGS=${build_ldflags}" )