Skip to contentSkip to conversation

native.bbclass: Set CXXFLAGS from BUILD_CXXFLAGS not BUILD_CFLAGS

PATCH New Phil Blundell 1 participant 1 message Jan 30, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta/classes/native.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/native.bbclass +1 -1
index aac2c1e..a3a5c8c 100644
@@ -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} "
 
Signature · 1 line
2.1.4