]> code.ossystems Code Review - openembedded-core.git/commitdiff
native.bbclass: Set CXXFLAGS from BUILD_CXXFLAGS not BUILD_CFLAGS
authorPhil Blundell <pb@pbcl.net>
Sat, 30 Jan 2016 12:21:59 +0000 (12:21 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 31 Jan 2016 13:29:38 +0000 (13:29 +0000)
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 <pb@pbcl.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/native.bbclass

index aac2c1e87052c73d2866785d8796b899cd5e172c..a3a5c8c7487037201df82a686b9c1f36f15a87ba 100644 (file)
@@ -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} "