From: Joe Slater Date: Wed, 15 Nov 2017 18:54:09 +0000 (-0800) Subject: nss: pay attention to CFLAGS X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~19485 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95b65eefe7eb001752a37d1015bbf9be63bfd6bb;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git nss: pay attention to CFLAGS nss ignores CFLAGS so we suggest them via CC. Signed-off-by: Joe Slater Signed-off-by: Ross Burton --- diff --git a/meta/recipes-support/nss/nss_3.33.bb b/meta/recipes-support/nss/nss_3.33.bb index e3d4f96946e..06d81ce05d3 100644 --- a/meta/recipes-support/nss/nss_3.33.bb +++ b/meta/recipes-support/nss/nss_3.33.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}"