diff options
author | Hans-Christian Noren Egtvedt <hegtvedt@cisco.com> | 2020-10-05 15:35:57 +0200 |
---|---|---|
committer | Hans-Christian Noren Egtvedt <hegtvedt@cisco.com> | 2020-10-05 15:37:19 +0200 |
commit | 60e782fdecff9b5ff58710716cf3e54e424e3da0 (patch) | |
tree | 322606b766b12c9322f9675bb2c471edd2553875 | |
parent | 80a2e0cf8764cd38a6b4783786a54d614a78243e (diff) | |
download | crosstool-ng-60e782fdecff9b5ff58710716cf3e54e424e3da0.tar.gz crosstool-ng-60e782fdecff9b5ff58710716cf3e54e424e3da0.tar.bz2 crosstool-ng-60e782fdecff9b5ff58710716cf3e54e424e3da0.zip |
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>
-rw-r--r-- | scripts/build/libc/glibc.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh index 31fa067f..ba6e5482 100644 --- a/scripts/build/libc/glibc.sh +++ b/scripts/build/libc/glibc.sh @@ -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}" ) |