Skip to contentSkip to conversation

uninative: Use CXX11 ABI for interoperation between gcc4 and gcc5

PATCH New Richard Purdie 1 participant 1 message Mar 5, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uninative: Use CXX11 ABI for interoperation between gcc4 and gcc5

We may see binaries built with gcc5 run or linked into gcc4 environment so use the older libstdc++ standard for now until we don't support gcc4 on the host system. https://wiki.debian.org/GCC5 has more details about this.

meta/classes/uninative.bbclass +6 -0
index 6abcbed..260a926 100644
@@ -7,6 +7,12 @@ UNINATIVE_TARBALL ?= "${BUILD_ARCH}-nativesdk-libc.tar.bz2"
 #UNINATIVE_CHECKSUM[x86_64] = "dead"
 UNINATIVE_DLDIR ?= "${DL_DIR}"
 
+# https://wiki.debian.org/GCC5
+# We may see binaries built with gcc5 run or linked into gcc4 environment
+# so use the older libstdc++ standard for now until we don't support gcc4
+# on the host system.
+BUILD_CXXFLAGS_append = " -D_GLIBCXX_USE_CXX11_ABI=0"
+
 addhandler uninative_event_fetchloader
 uninative_event_fetchloader[eventmask] = "bb.event.BuildStarted"