summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorJoe Slater <jslater@windriver.com>2017-11-15 10:54:09 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-30 10:49:21 +0000
commite21ba89ba247f2942a6149acc49e6b989001b802 (patch)
treea77f4645be1cc1dfcb723dfc19b44a936d348037 /meta/recipes-support
parent7f47d01fe9cf6a5f989e3a7c86d7c248d4065029 (diff)
downloadpoky-e21ba89ba247f2942a6149acc49e6b989001b802.tar.gz
nss: pay attention to CFLAGS
nss ignores CFLAGS so we suggest them via CC. (From OE-Core rev: 95b65eefe7eb001752a37d1015bbf9be63bfd6bb) Signed-off-by: Joe Slater <jslater@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/nss/nss_3.33.bb7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/recipes-support/nss/nss_3.33.bb b/meta/recipes-support/nss/nss_3.33.bb
index e3d4f96946..06d81ce05d 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() {
104 # We can modify CC in the environment, but if we set it via an 104 # We can modify CC in the environment, but if we set it via an
105 # argument to make, nsinstall, a host program, will also build with it! 105 # argument to make, nsinstall, a host program, will also build with it!
106 # 106 #
107 export CC="${CC} -g" 107 # nss pretty much does its own thing with CFLAGS, so we put them into CC.
108 # Optimization will get clobbered, but most of the stuff will survive.
109 # The motivation for this is to point to the correct place for debug
110 # source files and CFLAGS does that. Nothing uses CCC.
111 #
112 export CC="${CC} ${CFLAGS}"
108 make -C ./nss CCC="${CXX} -g" \ 113 make -C ./nss CCC="${CXX} -g" \
109 OS_TEST=${OS_TEST} \ 114 OS_TEST=${OS_TEST} \
110 RPATH="${RPATH}" 115 RPATH="${RPATH}"