From 4c3b62507713101d0603cef04a2a2c20c268f897 Mon Sep 17 00:00:00 2001 From: Nikolay Merinov Date: Thu, 5 Oct 2017 12:25:39 +0500 Subject: nspr, nss: Use BUILD_CC instead of hardcoded "gcc" Recipes nspr_4.16.bb and nss_3.31.1.bb ignored BUILD_CC and it's BUILD_CFLAGS and tried to compile with hardcoded "gcc" instead. As result build for this recipes will fail if host use different name for compiler or require any flags. (From OE-Core rev: 79e3339ab9edacb9e34d3725305d5880a974364a) Signed-off-by: Nikolay Merinov Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/recipes-support/nspr/nspr_4.16.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/recipes-support/nspr') diff --git a/meta/recipes-support/nspr/nspr_4.16.bb b/meta/recipes-support/nspr/nspr_4.16.bb index bb178fe712..78ef994ffd 100644 --- a/meta/recipes-support/nspr/nspr_4.16.bb +++ b/meta/recipes-support/nspr/nspr_4.16.bb @@ -155,7 +155,7 @@ PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," do_compile_prepend() { - oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX" LDFLAGS="" CC=gcc -C config export + oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX ${BUILD_CFLAGS}" LDFLAGS="" CC="${BUILD_CC}" -C config export } do_compile_append() { -- cgit v1.2.3-54-g00ecf