From fd75637d97cc3d669229e59c1d21ce7038fc92d7 Mon Sep 17 00:00:00 2001 From: Phil Blundell Date: Sat, 30 Jan 2016 12:21:59 +0000 Subject: native.bbclass: Set CXXFLAGS from BUILD_CXXFLAGS not BUILD_CFLAGS Although BUILD_CXXFLAGS, by default, expands to the same thing as BUILD_CFLAGS there is no guarantee that this will be true in all cases. When setting CXXFLAGS we should use the former. Signed-off-by: Phil Blundell Signed-off-by: Richard Purdie --- meta/classes/native.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass index aac2c1e870..a3a5c8c748 100644 --- a/meta/classes/native.bbclass +++ b/meta/classes/native.bbclass @@ -42,7 +42,7 @@ HOST_AS_ARCH = "${BUILD_AS_ARCH}" CPPFLAGS = "${BUILD_CPPFLAGS}" CFLAGS = "${BUILD_CFLAGS}" -CXXFLAGS = "${BUILD_CFLAGS}" +CXXFLAGS = "${BUILD_CXXFLAGS}" LDFLAGS = "${BUILD_LDFLAGS}" LDFLAGS_build-darwin = "-L${STAGING_LIBDIR_NATIVE} " -- cgit 1.2.3-korg