summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans-Christian Noren Egtvedt <hegtvedt@cisco.com>2020-10-05 13:35:57 (GMT)
committerHans-Christian Noren Egtvedt <hegtvedt@cisco.com>2020-10-05 13:37:19 (GMT)
commit60e782fdecff9b5ff58710716cf3e54e424e3da0 (patch)
tree322606b766b12c9322f9675bb2c471edd2553875 /scripts
parent80a2e0cf8764cd38a6b4783786a54d614a78243e (diff)
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/libc/glibc.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh
index 31fa067..ba6e548 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}" )