[OE-core] [oe-core][PATCH 1/1] nss: pay attention to CFLAGS
Khem Raj
raj.khem at gmail.com
Wed Nov 15 19:39:09 UTC 2017
On Wed, Nov 15, 2017 at 10:54 AM, Joe Slater <jslater at windriver.com> wrote:
> nss ignores CFLAGS so we suggest them via CC.
is that a limitation or intentional in nss build system.
>
> Signed-off-by: Joe Slater <jslater at windriver.com>
> ---
> meta/recipes-support/nss/nss_3.33.bb | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-support/nss/nss_3.33.bb b/meta/recipes-support/nss/nss_3.33.bb
> index e3d4f96..06d81ce 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}"
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
More information about the Openembedded-core
mailing list