From 1a2fb23f56851cd09f3fd7aa525bf1b6ecdde284 Mon Sep 17 00:00:00 2001 From: Joe Slater Date: Wed, 15 Nov 2017 10:54:09 -0800 Subject: nss: pay attention to CFLAGS nss ignores CFLAGS so we suggest them via CC. (From OE-Core rev: 7484c62f88311dbc1e9ade524af31d04e6035bf4) Signed-off-by: Joe Slater Signed-off-by: Ross Burton (cherry picked from commit 95b65eefe7eb001752a37d1015bbf9be63bfd6bb) Signed-off-by: Armin Kuster Signed-off-by: Richard Purdie --- meta/recipes-support/nss/nss_3.31.1.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'meta') diff --git a/meta/recipes-support/nss/nss_3.31.1.bb b/meta/recipes-support/nss/nss_3.31.1.bb index 588708fc31..2bb9bdb0c6 100644 --- a/meta/recipes-support/nss/nss_3.31.1.bb +++ b/meta/recipes-support/nss/nss_3.31.1.bb @@ -104,7 +104,12 @@ do_compile() { # We can modify CC in the environment, but if we set it via an # argument to make, nsinstall, a host program, will also build with it! # - export CC="${CC} -g" + # nss pretty much does its own thing with CFLAGS, so we put them into CC. + # Optimization will get clobbered, but most of the stuff will survive. + # The motivation for this is to point to the correct place for debug + # source files and CFLAGS does that. Nothing uses CCC. + # + export CC="${CC} ${CFLAGS}" make -C ./nss CCC="${CXX} -g" \ OS_TEST=${OS_TEST} \ RPATH="${RPATH}" -- cgit v1.2.3-54-g00ecf